Browse Source

Fix undefined _load_average when SYSTEM_CHECK_ENABLED is 0 (#707)

rfm69
Xose Pérez 6 years ago
parent
commit
4dde84dfaf
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/espurna/system.ino

+ 3
- 3
code/espurna/system.ino View File

@ -13,6 +13,9 @@ Copyright (C) 2018 by Xose Pérez <xose dot perez at gmail dot com>
unsigned long _loopDelay = 0; unsigned long _loopDelay = 0;
bool _system_send_heartbeat = false; bool _system_send_heartbeat = false;
// Calculated load average 0 to 100;
unsigned short int _load_average = 100;
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
#if SYSTEM_CHECK_ENABLED #if SYSTEM_CHECK_ENABLED
@ -26,9 +29,6 @@ bool _system_send_heartbeat = false;
bool _systemStable = true; bool _systemStable = true;
// Calculated load average 0 to 100;
unsigned short int _load_average = 100;
void systemCheck(bool stable) { void systemCheck(bool stable) {
unsigned char value = EEPROM.read(EEPROM_CRASH_COUNTER); unsigned char value = EEPROM.read(EEPROM_CRASH_COUNTER);
if (stable) { if (stable) {


Loading…
Cancel
Save