Compare commits
No commits in common. "46837a68e4c0591bf6f2158436df2f97709356a5" and "788060bf38fc5c1ec9923d32f2cf9bdc2cebf977" have entirely different histories.
46837a68e4
...
788060bf38
|
@ -175,8 +175,6 @@ where
|
|||
for _ in 0..8 {
|
||||
delay_us(FIRST_HALF_SERIAL_DELAY);
|
||||
|
||||
data <<= 1;
|
||||
|
||||
if P::is_low() {
|
||||
data |= 1;
|
||||
reciever_parity_bit ^= 1;
|
||||
|
@ -187,6 +185,8 @@ where
|
|||
|
||||
delay_cycles(READING_ADJUST);
|
||||
delay_us(SECOND_HALF_SERIAL_DELAY);
|
||||
|
||||
data <<= 1;
|
||||
}
|
||||
|
||||
delay_us(FIRST_HALF_SERIAL_DELAY);
|
||||
|
@ -196,7 +196,7 @@ where
|
|||
delay_cycles(READING_ADJUST);
|
||||
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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue