diff --git a/avr/send.c b/avr/send.c index d89e224..86311cc 100644 --- a/avr/send.c +++ b/avr/send.c @@ -37,14 +37,14 @@ static volatile uint16_t i = 0, static void spi_start() { /* - * Configure MISO as output + * Configure MISO as input */ - DDRB |= (1 << DDB4); + DDRB &= ~(1 << DDB4); /* - * Configure MOSI as input + * Configure MOSI as output */ - DDRB &= ~(1 << DDB3); + DDRB |= (1 << DDB3); /* * Configure SCK pin as output