Merge branch 'write-json-files' into oversampling

This commit is contained in:
Oliver Jowett 2014-11-23 17:22:58 +00:00
commit 9e72eb64be

View file

@ -633,7 +633,7 @@ void backgroundTasks(void) {
if (Modes.json_path && Modes.json_interval > 0) {
time_t now = time(NULL);
if (now > next_json) {
if (now >= next_json) {
modesWriteJson(Modes.json_path);
next_json = now + Modes.json_interval;
}