From 3a21499be2a0df4decfa3aa55ee9486dc9f32d64 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 10 Jun 2016 17:44:20 -0500 Subject: [PATCH] On the off chance incoming bits are only latched after rising edge --- avr/link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avr/link.c b/avr/link.c index 6d61d9a..3ef1e2c 100644 --- a/avr/link.c +++ b/avr/link.c @@ -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); }