Fix agschedule anon function call order

This commit is contained in:
samuelbles07
2025-07-26 18:22:30 +07:00
parent 831c844c24
commit f4d518aa87

View File

@ -8,8 +8,8 @@ AgSchedule::~AgSchedule() {}
void AgSchedule::run(void) {
uint32_t ms = (uint32_t)(millis() - count);
if (ms >= period) {
handler();
count = millis();
handler();
}
}