|
@ -21,7 +21,7 @@ |
|
|
#define ALL_FRAMES 0x80 |
|
|
#define ALL_FRAMES 0x80 |
|
|
#define SINGLE_FRAME 0x81 |
|
|
#define SINGLE_FRAME 0x81 |
|
|
|
|
|
|
|
|
const char* const rf24AmpPowerNames[] = {"MIN", "LOW", "HIGH", "MAX"}; |
|
|
const char* const rf24AmpPowerNames[] = {"MIN (recommended)", "LOW", "HIGH", "MAX (experimental)"}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
//-----------------------------------------------------------------------------
|
|
@ -205,6 +205,7 @@ class HmRadio { |
|
|
} |
|
|
} |
|
|
cnt++; |
|
|
cnt++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
sendPacket(invId, cnt, isRetransmit, isNoMI); |
|
|
sendPacket(invId, cnt, isRetransmit, isNoMI); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -239,6 +240,14 @@ class HmRadio { |
|
|
return mNrf24.isPVariant(); |
|
|
return mNrf24.isPVariant(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool goodSignal(void) { |
|
|
|
|
|
bool goodSignal = mNrf24.testRPD(); |
|
|
|
|
|
DPRINT(DBG_INFO, F("NRF Signal: ")); |
|
|
|
|
|
DPRINT(DBG_INFO, String(goodSignal)); |
|
|
|
|
|
mNrf24.read(0,0); |
|
|
|
|
|
return goodSignal; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
std::queue<packet_t> mBufCtrl; |
|
|
std::queue<packet_t> mBufCtrl; |
|
|
|
|
|
|
|
|
uint32_t mSendCnt; |
|
|
uint32_t mSendCnt; |
|
|