mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
fix upload_status
This commit is contained in:
@@ -1653,9 +1653,9 @@ void EMSESP::start() {
|
|||||||
|
|
||||||
// main loop calling all services
|
// main loop calling all services
|
||||||
void EMSESP::loop() {
|
void EMSESP::loop() {
|
||||||
esp8266React.loop(); // web services
|
esp8266React.loop(); // web services
|
||||||
system_.loop(); // does LED and checks system health, and syslog service
|
system_.loop(); // does LED and checks system health, and syslog service
|
||||||
bool upload_status = true; // ready for any OTA uploads
|
static bool upload_status = true; // ready for any OTA uploads
|
||||||
|
|
||||||
// if we're doing an OTA upload, skip everything except from console refresh
|
// if we're doing an OTA upload, skip everything except from console refresh
|
||||||
if (!system_.upload_isrunning()) {
|
if (!system_.upload_isrunning()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user