From 4dde84dfafa9bbfc5c840bd3e04c4f77e11f4d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 24 Mar 2018 22:43:40 +0100 Subject: [PATCH] Fix undefined _load_average when SYSTEM_CHECK_ENABLED is 0 (#707) --- code/espurna/system.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/system.ino b/code/espurna/system.ino index 44c4e428..cccd09db 100644 --- a/code/espurna/system.ino +++ b/code/espurna/system.ino @@ -13,6 +13,9 @@ Copyright (C) 2018 by Xose PĂ©rez unsigned long _loopDelay = 0; bool _system_send_heartbeat = false; +// Calculated load average 0 to 100; +unsigned short int _load_average = 100; + // ----------------------------------------------------------------------------- #if SYSTEM_CHECK_ENABLED @@ -26,9 +29,6 @@ bool _system_send_heartbeat = false; bool _systemStable = true; -// Calculated load average 0 to 100; -unsigned short int _load_average = 100; - void systemCheck(bool stable) { unsigned char value = EEPROM.read(EEPROM_CRASH_COUNTER); if (stable) {