diff --git a/src/AgSchedule.cpp b/src/AgSchedule.cpp index 0e43678..8b7e35e 100644 --- a/src/AgSchedule.cpp +++ b/src/AgSchedule.cpp @@ -8,8 +8,8 @@ AgSchedule::~AgSchedule() {} void AgSchedule::run(void) { uint32_t ms = (uint32_t)(millis() - count); if (ms >= period) { - handler(); count = millis(); + handler(); } }