From 9d043dcfd4fd4ade16bec37575d7a8ba66cc0cd6 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 18 Mar 2016 22:25:24 +0100 Subject: [PATCH] atusb: fw: make sure we return correctly for both atusb as well as rzusb This was changed by the rzusb support patch. We should use the new generic define here which maps it correctly on both devices. --- atusb/fw/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atusb/fw/spi.c b/atusb/fw/spi.c index 3172ef1..359e99d 100644 --- a/atusb/fw/spi.c +++ b/atusb/fw/spi.c @@ -36,7 +36,7 @@ uint8_t spi_io(uint8_t v) // while (!(UCSR1A & 1 << UDRE1)); SPI_DATA = v; SPI_WAIT_DONE(); - return SPDR; + return SPI_DATA; }