mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-02 07:27:42 +00:00
Merge pull request #4444 from andrethomas/patch-2
Remove assumption of 100% to report correctly
This commit is contained in:
commit
5ebef45465
@ -2799,9 +2799,5 @@ void loop(void)
|
||||
delay(my_activity /2); // If wifi down and my_activity > setoption36 then force loop delay to 1/3 of my_activity period
|
||||
}
|
||||
}
|
||||
if (my_activity < (uint32_t)Settings.param[P_LOOP_SLEEP_DELAY]) {
|
||||
UpdateLoopLoadAvg(my_activity);
|
||||
} else {
|
||||
UpdateLoopLoadAvg((uint32_t)Settings.param[P_LOOP_SLEEP_DELAY]); // Assume 100% loop cycle ratio
|
||||
}
|
||||
UpdateLoopLoadAvg(my_activity);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user