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/configuration/t85_aggressive/bootloaderconfig.h | 2 +- firmware/main.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/configuration/t85_aggressive/bootloaderconfig.h b/firmware/configuration/t85_aggressive/bootloaderconfig.h index d8aeb3e..5cd1266 100644 --- a/firmware/configuration/t85_aggressive/bootloaderconfig.h +++ b/firmware/configuration/t85_aggressive/bootloaderconfig.h @@ -11,7 +11,7 @@ * LED : None * OSCCAL : Stays at 16 MHz * Note: Uses 16 MHz V-USB implementation. - * Worked reliable in all tests, but is possibly less stable then 16.5M Hz Implementation with PLL + * Worked reliably in all tests, but is possibly less stable than 16.5M Hz Implementation with PLL * Last Change: Jan 11,2015 * * License: GNU GPL v2 (see License.txt 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