From 7c52020254d4f181e2958b58dcc8a851c222bcd3 Mon Sep 17 00:00:00 2001 From: Luca Borsari Date: Fri, 30 Aug 2024 14:27:52 +0200 Subject: [PATCH] cast to INACTIVITY_TIMEOUT_DELAY to avoid compiler warning --- open-led-race/open-led-race.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/open-led-race/open-led-race.ino b/open-led-race/open-led-race.ino index 731a273..6386c76 100644 --- a/open-led-race/open-led-race.ino +++ b/open-led-race/open-led-race.ino @@ -399,7 +399,7 @@ bool players_actity(uint8_t numcars ) { */ bool ready_for_demo_mode(void) { if(players_actity(race.numcars)){ - demoMode_delay.start(INACTIVITY_TIMEOUT_DELAY * 1000); // Reset timeout when somebody is using controllers + demoMode_delay.start((unsigned long) INACTIVITY_TIMEOUT_DELAY * 1000); // Reset timeout when somebody is using controllers } return (demoMode_delay.elapsed()); }