From d19d78f940d6249f41ecbd7987284d86d26ff88c Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Tue, 3 Mar 2015 19:22:43 +0100 Subject: [PATCH] Always favour SPI library if it has transactions --- usbhost.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usbhost.h b/usbhost.h index 9572154c..0bd5c6ef 100644 --- a/usbhost.h +++ b/usbhost.h @@ -246,7 +246,7 @@ uint8_t MAX3421e< SPI_SS, INTR >::regRd(uint8_t reg) { #endif SPI_SS::Clear(); -#if !defined(SPDR) +#if !defined(SPDR) || SPI_HAS_TRANSACTION SPI.transfer(reg); uint8_t rv = SPI.transfer(0); // Send empty byte SPI_SS::Set();