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