diff options
Diffstat (limited to 'src/spi.c')
-rw-r--r-- | src/spi.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -8,11 +8,9 @@ volatile Mutex spi_mutex; void (*spi_receive) (uint8_t data) = 0; ISR(SPI_STC_vect, ISR_BLOCK) { - void (*spir_w) (uint8_t data) = spi_receive; _spi_busy = 0; - while (spir_w != NULL) { + if (spi_receive != NULL) { spir_w(SPDR); - spir_w++; } } |