mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-09-25 20:20:55 +02:00
Fix agschedule anon function call order
This commit is contained in:
@@ -8,8 +8,8 @@ AgSchedule::~AgSchedule() {}
|
||||
void AgSchedule::run(void) {
|
||||
uint32_t ms = (uint32_t)(millis() - count);
|
||||
if (ms >= period) {
|
||||
handler();
|
||||
count = millis();
|
||||
handler();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user