Don't spam stats reports if the system clock jumps.

This commit is contained in:
Oliver Jowett 2015-12-19 18:28:12 +00:00
parent 497f88fe1c
commit 457761f060

View file

@ -810,6 +810,10 @@ void backgroundTasks(void) {
reset_stats(&Modes.stats_periodic);
next_stats_display += Modes.stats;
if (next_stats_display <= now) {
/* something has gone wrong, perhaps the system clock jumped */
next_stats_display = now + Modes.stats;
}
}
}