Commit dceeabb3 authored by TMRh20's avatar TMRh20
parent 28c363f4
......@@ -90,7 +90,7 @@ protected:
*
*/
inline void beginTransaction() {
#if defined (RF24_SPI_TRANSACTIONS)
#if defined (SPI_HAS_TRANSACTION)
_SPI.beginTransaction(SPISettings(RF_SPI_SPEED, MSBFIRST, SPI_MODE0));
#endif
csn(LOW);
......@@ -98,7 +98,7 @@ protected:
inline void endTransaction() {
csn(HIGH);
#if defined (RF24_SPI_TRANSACTIONS)
#if defined (SPI_HAS_TRANSACTION)
_SPI.endTransaction();
#endif
}
......
......@@ -94,10 +94,6 @@
#define _SPI SPI
#endif
#if defined SPI_HAS_TRANSACTION
#define RF24_SPI_TRANSACTIONS
#endif
#ifdef SERIAL_DEBUG
#define IF_SERIAL_DEBUG(x) ({x;})
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment