summaryrefslogtreecommitdiffstats
path: root/firmware/bootloaderconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/bootloaderconfig.h')
-rw-r--r--firmware/bootloaderconfig.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/bootloaderconfig.h b/firmware/bootloaderconfig.h
index 3b9863d..772c01b 100644
--- a/firmware/bootloaderconfig.h
+++ b/firmware/bootloaderconfig.h
@@ -203,7 +203,10 @@ these macros are defined, the boot loader uses them.
/* max 6200ms to not overflow idlePolls variable */
#define AUTO_EXIT_MS 5000
-#define AUTO_EXIT_CONDITION() (idlePolls > (AUTO_EXIT_MS * 10UL))
+//#define AUTO_EXIT_CONDITION() (idlePolls > (AUTO_EXIT_MS * 10UL))
+
+
+#define bootLoaderCondition() (idlePolls < (AUTO_EXIT_MS * 10UL))
/* ----------------------- Optional MCU Description ------------------------ */
@@ -242,9 +245,6 @@ static inline void bootLoaderExit(void)
#endif
}
-
-#define bootLoaderCondition() 1
-
#endif /* __ASSEMBLER__ */
/* ------------------------------------------------------------------------- */