diff options
author | cpldcpu <cpldcpu@gmail.com> | 2015-04-18 12:05:40 +0200 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2015-04-18 12:05:40 +0200 |
commit | e67eb5000ccc6befd04cd1cb8115b5c06e45a76e (patch) | |
tree | 60f71ae5573ec8829fc4332f85489e469a0401d0 /firmware/main.c | |
parent | 8dab45135ab6aa69db0708776a989a586ff99b50 (diff) | |
download | micronucleus-e67eb5000ccc6befd04cd1cb8115b5c06e45a76e.tar.gz micronucleus-e67eb5000ccc6befd04cd1cb8115b5c06e45a76e.tar.bz2 micronucleus-e67eb5000ccc6befd04cd1cb8115b5c06e45a76e.zip |
firmware: emit error when auto_exit_ms is too low
Diffstat (limited to 'firmware/main.c')
-rw-r--r-- | firmware/main.c | 4 |
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 |