mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-22 18:57:12 +02:00
0.7.62
* add timeout before payload is tried to process (necessary for HMS/HMT)
This commit is contained in:
parent
dae638f7c6
commit
41ade24538
5 changed files with 9 additions and 8 deletions
|
@ -133,10 +133,10 @@ void app::loop(void) {
|
|||
DBGPRINT(F("dBm | "));
|
||||
ah::dumpBuf(p->packet, p->len);
|
||||
}
|
||||
mNrfStat.frmCnt++;
|
||||
|
||||
Inverter<> *iv = mSys.findInverter(&p->packet[1]);
|
||||
if (NULL != iv) {
|
||||
iv->radioStatistics.frmCnt++;
|
||||
if (IV_MI == iv->ivGen)
|
||||
mMiPayload.add(iv, p);
|
||||
else
|
||||
|
@ -160,10 +160,10 @@ void app::loop(void) {
|
|||
DBGPRINT(F("dBm | "));
|
||||
ah::dumpBuf(p->packet, p->len);
|
||||
}
|
||||
mCmtStat.frmCnt++;
|
||||
|
||||
Inverter<> *iv = mSys.findInverter(&p->packet[1]);
|
||||
if(NULL != iv) {
|
||||
iv->radioStatistics.frmCnt++;
|
||||
if((iv->ivGen == IV_HMS) || (iv->ivGen == IV_HMT))
|
||||
mPayload.add(iv, p);
|
||||
}
|
||||
|
@ -515,9 +515,6 @@ void app::resetSystem(void) {
|
|||
mSaveReboot = false;
|
||||
|
||||
mNetworkConnected = false;
|
||||
|
||||
memset(&mNrfStat, 0, sizeof(statistics_t));
|
||||
memset(&mCmtStat, 0, sizeof(statistics_t));
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue