|
@ -293,13 +293,13 @@ class HmRadio : public Radio { |
|
|
return mNrf24->isPVariant(); |
|
|
return mNrf24->isPVariant(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
uint8_t getARC(void) { |
|
|
/*uint8_t getARC(void) {
|
|
|
return mNrf24->getARC(); |
|
|
return mNrf24->getARC(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
uint8_t getPLOS(void) { |
|
|
uint8_t getPLOS(void) { |
|
|
return mNrf24->getPLOS(); |
|
|
return mNrf24->getPLOS(); |
|
|
} |
|
|
}*/ |
|
|
|
|
|
|
|
|
private: |
|
|
private: |
|
|
inline bool getReceived(void) { |
|
|
inline bool getReceived(void) { |
|
@ -315,8 +315,8 @@ class HmRadio : public Radio { |
|
|
p.len = (len > MAX_RF_PAYLOAD_SIZE) ? MAX_RF_PAYLOAD_SIZE : len; |
|
|
p.len = (len > MAX_RF_PAYLOAD_SIZE) ? MAX_RF_PAYLOAD_SIZE : len; |
|
|
p.rssi = mNrf24->testRPD() ? -64 : -75; |
|
|
p.rssi = mNrf24->testRPD() ? -64 : -75; |
|
|
p.millis = millis() - mMillis; |
|
|
p.millis = millis() - mMillis; |
|
|
p.arc = mNrf24->getARC(); |
|
|
//p.arc = mNrf24->getARC();
|
|
|
p.plos = mNrf24->getPLOS(); |
|
|
//p.plos = mNrf24->getPLOS();
|
|
|
mNrf24->read(p.packet, p.len); |
|
|
mNrf24->read(p.packet, p.len); |
|
|
|
|
|
|
|
|
if (p.packet[0] != 0x00) { |
|
|
if (p.packet[0] != 0x00) { |
|
@ -370,7 +370,9 @@ class HmRadio : public Radio { |
|
|
DBGPRINT(String(len)); |
|
|
DBGPRINT(String(len)); |
|
|
DBGPRINT(" CH"); |
|
|
DBGPRINT(" CH"); |
|
|
DBGPRINT(String(mRfChLst[mTxChIdx])); |
|
|
DBGPRINT(String(mRfChLst[mTxChIdx])); |
|
|
DBGPRINT(F(" | ")); |
|
|
DBGPRINT(F(", ")); |
|
|
|
|
|
DBGPRINT(String(mTxRetriesNext)); |
|
|
|
|
|
DBGPRINT(F(" retries | ")); |
|
|
if(*mPrintWholeTrace) { |
|
|
if(*mPrintWholeTrace) { |
|
|
if(*mPrivacyMode) |
|
|
if(*mPrivacyMode) |
|
|
ah::dumpBuf(mTxBuf, len, 1, 4); |
|
|
ah::dumpBuf(mTxBuf, len, 1, 4); |
|
|