Adapts RFM69 to be used with SAMD
This commit is contained in:
@@ -410,7 +410,7 @@ void RFM69::writeReg(byte addr, byte value)
|
||||
void RFM69::select() {
|
||||
noInterrupts();
|
||||
//save current SPI settings
|
||||
#ifndef ESP8266
|
||||
#if !defined(ESP8266) && !defined(ARDUINO_ARCH_SAMD)
|
||||
_SPCR = SPCR;
|
||||
_SPSR = SPSR;
|
||||
#endif
|
||||
@@ -425,7 +425,7 @@ void RFM69::select() {
|
||||
void RFM69::unselect() {
|
||||
digitalWrite(_slaveSelectPin, HIGH);
|
||||
//restore SPI settings to what they were before talking to RFM69
|
||||
#ifndef ESP8266
|
||||
#if !defined(ESP8266) && !defined(ARDUINO_ARCH_SAMD)
|
||||
SPCR = _SPCR;
|
||||
SPSR = _SPSR;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user