summaryrefslogtreecommitdiffstats
path: root/firmware/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/main.c')
-rw-r--r--firmware/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/main.c b/firmware/main.c
index 0ab0682..bafb121 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -325,7 +325,7 @@ int main(void) {
idlePolls++;
// Try to execute program if bootloader exit condition is met
- if (AUTO_EXIT_MS&&(idlePolls>AUTO_EXIT_MS*10)) fireEvent(EVENT_EXECUTE);
+ if (AUTO_EXIT_MS&&(idlePolls>AUTO_EXIT_MS*10L)) fireEvent(EVENT_EXECUTE);
/* main event loop runs as long as no problem is uploaded or existing program is not executed */
} while((!isEvent(EVENT_EXECUTE))||(pgm_read_byte(BOOTLOADER_ADDRESS - TINYVECTOR_RESET_OFFSET + 1)==0xff));