mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-05 04:01:41 +02:00
fix missing scheduler loop #596
This commit is contained in:
parent
3ff348bba8
commit
43c07be148
2 changed files with 5 additions and 4 deletions
|
@ -80,12 +80,13 @@ void app::setup() {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void app::loop(void) {
|
void app::loop(void) {
|
||||||
DPRINTLN(DBG_VERBOSE, F("app::loop"));
|
|
||||||
mInnerLoopCb();
|
mInnerLoopCb();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void app::loopStandard(void) {
|
void app::loopStandard(void) {
|
||||||
|
ah::Scheduler::loop();
|
||||||
|
|
||||||
mSys->Radio.loop();
|
mSys->Radio.loop();
|
||||||
mPayload.loop();
|
mPayload.loop();
|
||||||
|
|
||||||
|
@ -124,14 +125,13 @@ void app::loopStandard(void) {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void app::loopWifi(void) {
|
void app::loopWifi(void) {
|
||||||
DPRINTLN(DBG_VERBOSE, F("app::loop Wifi"));
|
|
||||||
|
|
||||||
ah::Scheduler::loop();
|
ah::Scheduler::loop();
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void app::onWifi(bool gotIp) {
|
void app::onWifi(bool gotIp) {
|
||||||
|
DPRINTLN(DBG_DEBUG, F("onWifi"));
|
||||||
ah::Scheduler::resetTicker();
|
ah::Scheduler::resetTicker();
|
||||||
regularTickers(); // reinstall regular tickers
|
regularTickers(); // reinstall regular tickers
|
||||||
if (gotIp) {
|
if (gotIp) {
|
||||||
|
@ -148,6 +148,7 @@ void app::onWifi(bool gotIp) {
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void app::regularTickers(void) {
|
void app::regularTickers(void) {
|
||||||
|
DPRINTLN(DBG_DEBUG, F("regularTickers"));
|
||||||
everySec(std::bind(&WebType::tickSecond, &mWeb));
|
everySec(std::bind(&WebType::tickSecond, &mWeb));
|
||||||
// Plugins
|
// Plugins
|
||||||
#if defined(ENA_NOKIA) || defined(ENA_SSD1306) || defined(ENA_SH1106)
|
#if defined(ENA_NOKIA) || defined(ENA_SSD1306) || defined(ENA_SH1106)
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 5
|
#define VERSION_MINOR 5
|
||||||
#define VERSION_PATCH 71
|
#define VERSION_PATCH 72
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue