Browse Source

reduced scope of 2 vars.

rfm69
Lazar Obradovic 6 years ago
parent
commit
be890e20ae
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      code/espurna/system.ino

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

@ -85,12 +85,13 @@ void systemLoop() {
// Increase temporary loop counter
static unsigned long load_counter_temp = 0;
static unsigned long load_counter = 0;
static unsigned long load_counter_max = 1;
static unsigned long last_loadcheck = 0;
load_counter_temp++;
if (millis() - last_loadcheck > LOADAVG_INTERVAL) {
static unsigned long load_counter = 0;
static unsigned long load_counter_max = 1;
load_counter = load_counter_temp;
load_counter_temp = 0;
if (load_counter > load_counter_max) {


Loading…
Cancel
Save