fix(read): prevent redundant data left bit shifting
fix(parity_bit):
This commit is contained in:
parent
788060bf38
commit
698851cbfd
|
@ -175,6 +175,8 @@ where
|
|||
for _ in 0..8 {
|
||||
delay_us(FIRST_HALF_SERIAL_DELAY);
|
||||
|
||||
data <<= 1;
|
||||
|
||||
if P::is_low() {
|
||||
data |= 1;
|
||||
reciever_parity_bit ^= 1;
|
||||
|
@ -185,8 +187,6 @@ where
|
|||
|
||||
delay_cycles(READING_ADJUST);
|
||||
delay_us(SECOND_HALF_SERIAL_DELAY);
|
||||
|
||||
data <<= 1;
|
||||
}
|
||||
|
||||
delay_us(FIRST_HALF_SERIAL_DELAY);
|
||||
|
|
Loading…
Reference in New Issue