Skip to content

Commit

Permalink
Some additional cases where the plan version needed updating
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed Jul 19, 2022
1 parent e182a91 commit aa163c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit aa163c7

Please sign in to comment.