Fix type mismatch in interruptable_delay
authorLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:29:37 +0000 (16:29 +0100)
committerLukáš Jiřiště <jiriste@icpf.cas.cz>
Tue, 10 Dec 2024 15:29:37 +0000 (16:29 +0100)
helpers.ino

index accb6f1593fc5547e7f9e2842ee9ef914368707f..8130de197c447ad97d0d11bc991dd79154161045 100644 (file)
@@ -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();
 }
-