mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-28 08:16:11 +02:00
improved stability
improved wifi initial connection - especially if station wifi is not available #509 removed new operators from web.h (reduce dynamic allocation) improved sun calculation #515, #505 fixed wifi auto reconnect #509 added disable night communication flag to MQTT #505 changed MQTT publish of `available` and `available_text` to sunset #468
This commit is contained in:
parent
5977bbaee6
commit
07bf947ff7
14 changed files with 324 additions and 262 deletions
|
@ -151,8 +151,8 @@ class HmRadio {
|
|||
}
|
||||
|
||||
void loop(void) {
|
||||
DISABLE_IRQ;
|
||||
if(mIrqRcvd) {
|
||||
DISABLE_IRQ;
|
||||
mIrqRcvd = false;
|
||||
bool tx_ok, tx_fail, rx_ready;
|
||||
mNrf24.whatHappened(tx_ok, tx_fail, rx_ready); // resets the IRQ pin to HIGH
|
||||
|
@ -175,9 +175,8 @@ class HmRadio {
|
|||
break;
|
||||
}
|
||||
mNrf24.flush_rx(); // drop the packet
|
||||
}
|
||||
else
|
||||
RESTORE_IRQ;
|
||||
}
|
||||
}
|
||||
|
||||
void enableDebug() {
|
||||
|
@ -185,7 +184,6 @@ class HmRadio {
|
|||
}
|
||||
|
||||
void handleIntr(void) {
|
||||
//DPRINTLN(DBG_VERBOSE, F("hmRadio.h:handleIntr"));
|
||||
mIrqRcvd = true;
|
||||
}
|
||||
|
||||
|
@ -267,7 +265,8 @@ class HmRadio {
|
|||
}
|
||||
|
||||
bool switchRxCh(uint16_t addLoop = 0) {
|
||||
//DPRINTLN(DBG_VERBOSE, F("hmRadio.h:switchRxCh"));
|
||||
if(!mNrf24.isChipConnected())
|
||||
return true;
|
||||
mRxLoopCnt += addLoop;
|
||||
if(mRxLoopCnt != 0) {
|
||||
mRxLoopCnt--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue