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 | |
| 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
| -rw-r--r-- | firmware/configuration/t85_aggressive/bootloaderconfig.h | 2 | ||||
| -rw-r--r-- | firmware/main.c | 4 | 
2 files changed, 5 insertions, 1 deletions
| 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 | 
