fix(check): change bool expression for check condition
This commit is contained in:
1 parent
698851cbfd
commit
46837a68e4
1 file changed
+1
-1
+1
-1
@@ -196,7 +196,7 @@ where
|
|||||||
delay_cycles(READING_ADJUST);
|
delay_cycles(READING_ADJUST);
|
||||||
delay_us(SECOND_HALF_SERIAL_DELAY);
|
delay_us(SECOND_HALF_SERIAL_DELAY);
|
||||||
|
|
||||||
if reciever_parity_bit != transmitter_parity_bit {
|
if reciever_parity_bit == transmitter_parity_bit {
|
||||||
return Err((data, reciever_parity_bit));
|
return Err((data, reciever_parity_bit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user