summaryrefslogtreecommitdiffstats
path: root/firmware/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/main.c')
-rw-r--r--firmware/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/main.c b/firmware/main.c
index 403c4cc..a6bb8c6 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -38,6 +38,10 @@
#error "Micronucleus only supports pagesizes up to 256 bytes"
#endif
+#if ((AUTO_EXIT_MS>0) && (AUTO_EXIT_MS<1000))
+ #error "Do not set AUTO_EXIT_MS to below 1s to allow Micronucleus to function properly"
+#endif
+
// Device configuration reply
// Length: 6 bytes
// Byte 0: User program memory size, high byte