On the off chance incoming bits are only latched after rising edge
This commit is contained in:
parent
a1f4353878
commit
3a21499be2
1 changed files with 2 additions and 2 deletions
|
@ -58,12 +58,12 @@ uint8_t tabby_avr_link_send_byte(uint8_t value) {
|
|||
value <<= 1;
|
||||
ret <<= 1;
|
||||
|
||||
SC_HIGH();
|
||||
|
||||
if (SI_IS_HIGH()) {
|
||||
ret |= 1;
|
||||
}
|
||||
|
||||
SC_HIGH();
|
||||
|
||||
_delay_us(SPI_PULSE_USEC);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue