From aa163c7e185b16585d264c87fe115c5b4b1a5074 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Tue, 19 Jul 2022 23:51:52 +0100 Subject: [PATCH] Some additional cases where the plan version needed updating --- src/scheduler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scheduler.cpp b/src/scheduler.cpp index fdbebf7f..07082120 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -353,7 +353,7 @@ void Scheduler::buildSchedule() Event *event = e.getEvent(); int day = e.getDay(); - DBUGF("Event %d: %s %s %s", event->getId(), days_of_the_week_strings[day], event->getTime().c_str(), event->getStateText()); + DBUGF("Event %d: %s %s %s %d %d", event->getId(), days_of_the_week_strings[day], event->getTime().c_str(), event->getStateText(), event->getOffset(), e.getStartOffset()); e.moveToNext(); } while(e != _firstEvent); @@ -362,6 +362,7 @@ void Scheduler::buildSchedule() StaticJsonDocument<128> doc; doc["schedule_version"] = ++_version; + doc["schedule_plan_version"] = ++_plan_version; event_send(doc); // wake the main task to see if we actually need to do something