Fix undefined _load_average when SYSTEM_CHECK_ENABLED is 0 (#707)

This commit is contained in:
Xose Pérez
2018-03-24 22:43:40 +01:00
parent 7184205a1f
commit 4dde84dfaf

View File

@@ -13,6 +13,9 @@ Copyright (C) 2018 by Xose Pérez <xose dot perez at gmail dot com>
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) {