Browse Source

0.8.106

fix compile
pull/1584/head
lumapu 10 months ago
parent
commit
435aa1748a
  1. 2
      src/config/config.h
  2. 2
      src/hm/NrfRadio.h

2
src/config/config.h

@ -145,7 +145,7 @@
#ifndef DEF_MOTION_SENSOR_PIN #ifndef DEF_MOTION_SENSOR_PIN
#define DEF_MOTION_SENSOR_PIN DEF_PIN_OFF #define DEF_MOTION_SENSOR_PIN DEF_PIN_OFF
#endif #endif
#else #else // ESP8266
#ifndef DEF_NRF_CS_PIN #ifndef DEF_NRF_CS_PIN
#define DEF_NRF_CS_PIN 15 #define DEF_NRF_CS_PIN 15
#endif #endif

2
src/hm/NrfRadio.h

@ -38,7 +38,7 @@ class NrfRadio : public Radio {
#if defined(SPI_HAL) #if defined(SPI_HAL)
//mNrf24.reset(new RF24()); //mNrf24.reset(new RF24());
#else #else
mNrf24.reset(new RF24(CE_PIN, CS_PIN, SPI_SPEED)); mNrf24.reset(new RF24(DEF_NRF_CE_PIN, DEF_NRF_CS_PIN, SPI_SPEED));
#endif #endif
} }
~NrfRadio() {} ~NrfRadio() {}

Loading…
Cancel
Save