Always favour SPI library if it has transactions

This commit is contained in:
Kristian Sloth Lauszus 2015-03-03 19:22:43 +01:00
parent 5d3356c784
commit d19d78f940

View file

@ -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();