mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-10 04:57:17 +02:00
fix power-limit was not checked for max retransmits #667
fix blue LED lights up all the time #672 fix installing schedulers if NTP server isn't available improved zero values on triggers #671 hardcoded MQTT subtopics, because wildcard `#` leads to errors rephrased some messages on webif, thx to @Argafal #638
This commit is contained in:
parent
1dd1b3be21
commit
026df8a09b
10 changed files with 76 additions and 56 deletions
|
@ -104,6 +104,7 @@ class HmRadio {
|
|||
mNrf24.setRetries(3, 15); // 3*250us + 250us and 15 loops -> 15ms
|
||||
|
||||
mNrf24.setChannel(mRfChLst[mRxChIdx]);
|
||||
mNrf24.startListening();
|
||||
mNrf24.setDataRate(RF24_250KBPS);
|
||||
mNrf24.setAutoAck(true);
|
||||
mNrf24.enableDynamicPayloads();
|
||||
|
@ -118,8 +119,6 @@ class HmRadio {
|
|||
DPRINTLN(DBG_INFO, String(rf24AmpPowerNames[ampPwr]));
|
||||
mNrf24.setPALevel(ampPwr & 0x03);
|
||||
|
||||
mNrf24.startListening();
|
||||
|
||||
if(mNrf24.isChipConnected()) {
|
||||
DPRINTLN(DBG_INFO, F("Radio Config:"));
|
||||
mNrf24.printPrettyDetails();
|
||||
|
@ -140,6 +139,7 @@ class HmRadio {
|
|||
// start listening on the default RX channel
|
||||
mRxChIdx = 0;
|
||||
mNrf24.setChannel(mRfChLst[mRxChIdx]);
|
||||
mNrf24.startListening();
|
||||
|
||||
//uint32_t debug_ms = millis();
|
||||
uint16_t cnt = 300; // that is 60 times 5 channels
|
||||
|
@ -150,7 +150,6 @@ class HmRadio {
|
|||
mIrqRcvd = false;
|
||||
if (getReceived()) { // everything received
|
||||
//DBGPRINTLN("RX finished Cnt: " + String(300-cnt) + " time used: " + String(millis()-debug_ms)+ " ms");
|
||||
mNrf24.stopListening();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue