|
@ -32,7 +32,7 @@ class HmRadio { |
|
|
public: |
|
|
public: |
|
|
HmRadio() : mNrf24(CE_PIN, CS_PIN, SPI_SPEED) { |
|
|
HmRadio() : mNrf24(CE_PIN, CS_PIN, SPI_SPEED) { |
|
|
if(mSerialDebug) { |
|
|
if(mSerialDebug) { |
|
|
DPRINT(DBG_VERBOSE, F("hmRadio.h : HmRadio():mNrf24(CE_PIN: ")); |
|
|
DPRINT(DBG_VERBOSE, F("hmRadio.h : HmRadio():mNrf24(CE_PIN: ")); |
|
|
DBGPRINT(String(CE_PIN)); |
|
|
DBGPRINT(String(CE_PIN)); |
|
|
DBGPRINT(F(", CS_PIN: ")); |
|
|
DBGPRINT(F(", CS_PIN: ")); |
|
|
DBGPRINT(String(CS_PIN)); |
|
|
DBGPRINT(String(CS_PIN)); |
|
@ -117,8 +117,9 @@ class HmRadio { |
|
|
if(mNrf24.isChipConnected()) { |
|
|
if(mNrf24.isChipConnected()) { |
|
|
DPRINTLN(DBG_INFO, F("Radio Config:")); |
|
|
DPRINTLN(DBG_INFO, F("Radio Config:")); |
|
|
mNrf24.printPrettyDetails(); |
|
|
mNrf24.printPrettyDetails(); |
|
|
} |
|
|
DPRINT(DBG_INFO, F("DTU_SN: 0x")); |
|
|
else |
|
|
DBGPRINTLN(String(DTU_RADIO_ID, HEX)); |
|
|
|
|
|
} else |
|
|
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring")); |
|
|
DPRINTLN(DBG_WARN, F("WARNING! your NRF24 module can't be reached, check the wiring")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|