On the off chance incoming bits are only latched after rising edge

This commit is contained in:
XANTRONIX Development 2016-06-10 17:44:20 -05:00
parent a1f4353878
commit 3a21499be2

View file

@ -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);
}