From: Lukáš Jiřiště Date: Tue, 10 Dec 2024 15:29:37 +0000 (+0100) Subject: Fix type mismatch in interruptable_delay X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=67369f96f85db36c13c013aaf43f30cdfe18b62d;p=Servomatic.git Fix type mismatch in interruptable_delay --- diff --git a/helpers.ino b/helpers.ino index accb6f1..8130de1 100644 --- a/helpers.ino +++ b/helpers.ino @@ -9,7 +9,7 @@ static void interrupt_routine() int interruptable_delay(unsigned long ms) { - const unsigned int start_time{millis()}; + const unsigned long start_time{millis()}; while (ms > millis() - start_time) if (interrupt_happened == 1) @@ -40,4 +40,3 @@ void sleep() else interrupts(); } -