mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-23 11:17:11 +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) {
|
||||
DPRINTLN(DBG_DEBUG, F("onNetwork"));
|
||||
mNetworkConnected = gotIp;
|
||||
ah::Scheduler::resetTicker();
|
||||
regularTickers(); //reinstall regular tickers
|
||||
every(std::bind(&app::tickSend, this), mConfig->nrf.sendInterval, "tSend");
|
||||
#if defined(ESP32)
|
||||
if(mConfig->cmt.enabled)
|
||||
|
|
|
@ -65,7 +65,6 @@ class app : public IApp, public ah::Scheduler {
|
|||
|
||||
void setup(void);
|
||||
void loop(void);
|
||||
void loopStandard(void);
|
||||
void onNetwork(bool gotIp);
|
||||
void regularTickers(void);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue