The while statement is not working properly
I have next line in my code:
while(ReceiveBuf.Data[1]!=0x83 && ReceiveBuf.Data[2]!=0x82 && ReceiveBuf.Data[3]!=ACK){
...
}
The only way I should be able to leave that while is when Data1 = 83 Data2= 82 AND Data3 = ACK but when ONLY one of those conditions is true it leaves the while statement as if I was using OR instead AND

Funny isnt it?