From e67eb5000ccc6befd04cd1cb8115b5c06e45a76e Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Sat, 18 Apr 2015 12:05:40 +0200 Subject: firmware: emit error when auto_exit_ms is too low --- firmware/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'firmware/main.c') 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 -- cgit v1.2.3