mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 08:24:27 +01:00
Fix undefined _load_average when SYSTEM_CHECK_ENABLED is 0 (#707)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user