From b3bdf2811ec36edd0fbba435d313d3b12b968a40 Mon Sep 17 00:00:00 2001 From: lumapu Date: Thu, 28 Apr 2022 19:40:51 +0200 Subject: [PATCH] * fix: random crashes #15 -> don't use delay() on ESP while Wifi connection is established!? --- tools/esp8266/app.cpp | 4 ++-- tools/esp8266/defines.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/esp8266/app.cpp b/tools/esp8266/app.cpp index 56ef1786..d8f63611 100644 --- a/tools/esp8266/app.cpp +++ b/tools/esp8266/app.cpp @@ -164,7 +164,7 @@ void app::loop(void) { if(NULL != inv) { mSys->Radio.sendTimePacket(inv->radioId.u64, mTimestamp); yield(); - delay(100); + //delay(100); } } } @@ -184,7 +184,7 @@ void app::loop(void) { snprintf(topic, 30, "%s/ch%d/%s", iv->name, iv->assign[i].ch, fields[iv->assign[i].fieldId]); snprintf(val, 10, "%.3f", mSys->getValue(iv, i)); mMqtt.sendMsg(topic, val); - delay(20); + //delay(20); yield(); } } diff --git a/tools/esp8266/defines.h b/tools/esp8266/defines.h index 80de9e02..1aa22cee 100644 --- a/tools/esp8266/defines.h +++ b/tools/esp8266/defines.h @@ -25,7 +25,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 2 -#define VERSION_PATCH 10 +#define VERSION_PATCH 11 //-------------------------------------