mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-23 19:27:13 +02:00
reset ticker
beegee3 proposal, https://github.com/lumapu/ahoy/issues/1179#issuecomment-1735071508
This commit is contained in:
parent
3a29d6c258
commit
6b5dfeec08
2 changed files with 2 additions and 1 deletions
|
@ -187,6 +187,8 @@ void app::loop(void) {
|
||||||
void app::onNetwork(bool gotIp) {
|
void app::onNetwork(bool gotIp) {
|
||||||
DPRINTLN(DBG_DEBUG, F("onNetwork"));
|
DPRINTLN(DBG_DEBUG, F("onNetwork"));
|
||||||
mNetworkConnected = gotIp;
|
mNetworkConnected = gotIp;
|
||||||
|
ah::Scheduler::resetTicker();
|
||||||
|
regularTickers(); //reinstall regular tickers
|
||||||
every(std::bind(&app::tickSend, this), mConfig->nrf.sendInterval, "tSend");
|
every(std::bind(&app::tickSend, this), mConfig->nrf.sendInterval, "tSend");
|
||||||
#if defined(ESP32)
|
#if defined(ESP32)
|
||||||
if(mConfig->cmt.enabled)
|
if(mConfig->cmt.enabled)
|
||||||
|
|
|
@ -65,7 +65,6 @@ class app : public IApp, public ah::Scheduler {
|
||||||
|
|
||||||
void setup(void);
|
void setup(void);
|
||||||
void loop(void);
|
void loop(void);
|
||||||
void loopStandard(void);
|
|
||||||
void onNetwork(bool gotIp);
|
void onNetwork(bool gotIp);
|
||||||
void regularTickers(void);
|
void regularTickers(void);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue