From 67369f96f85db36c13c013aaf43f30cdfe18b62d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Tue, 10 Dec 2024 16:29:37 +0100 Subject: [PATCH] Fix type mismatch in interruptable_delay --- helpers.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); } - -- 2.30.2