mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Always favour SPI library if it has transactions
This commit is contained in:
parent
5d3356c784
commit
d19d78f940
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ uint8_t MAX3421e< SPI_SS, INTR >::regRd(uint8_t reg) {
|
||||||
#endif
|
#endif
|
||||||
SPI_SS::Clear();
|
SPI_SS::Clear();
|
||||||
|
|
||||||
#if !defined(SPDR)
|
#if !defined(SPDR) || SPI_HAS_TRANSACTION
|
||||||
SPI.transfer(reg);
|
SPI.transfer(reg);
|
||||||
uint8_t rv = SPI.transfer(0); // Send empty byte
|
uint8_t rv = SPI.transfer(0); // Send empty byte
|
||||||
SPI_SS::Set();
|
SPI_SS::Set();
|
||||||
|
|
Loading…
Reference in a new issue