diff options
author | cpldcpu <cpldcpu@gmail.com> | 2013-10-07 01:17:39 +0200 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2013-10-07 01:17:39 +0200 |
commit | 16c1092c688200cba1231dbfebbac52b4d178c03 (patch) | |
tree | 0fa72c4832117e786be096fe5d60c1f366777472 /firmware/bootloaderconfig.h | |
parent | bfc82adaf601462b5bb27afd20d5f655f5537146 (diff) | |
download | micronucleus-16c1092c688200cba1231dbfebbac52b4d178c03.tar.gz micronucleus-16c1092c688200cba1231dbfebbac52b4d178c03.tar.bz2 micronucleus-16c1092c688200cba1231dbfebbac52b4d178c03.zip |
Reduce accesses to global variable idlePolls
saves 8 bytes
Diffstat (limited to 'firmware/bootloaderconfig.h')
-rw-r--r-- | firmware/bootloaderconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/bootloaderconfig.h b/firmware/bootloaderconfig.h index 3133368..a23ea5a 100644 --- a/firmware/bootloaderconfig.h +++ b/firmware/bootloaderconfig.h @@ -237,7 +237,7 @@ these macros are defined, the boot loader uses them. #else #define bootLoaderInit() #define bootLoaderExit() - #define bootLoaderCondition() (idlePolls < (AUTO_EXIT_MS * 10UL)) + #define bootLoaderCondition() (++idlePolls < (AUTO_EXIT_MS * 10UL)) #if LOW_POWER_MODE // only starts bootloader if USB D- is pulled high on startup - by putting your pullup in to an external connector // you can avoid ever entering an out of spec clock speed or waiting on bootloader when that pullup isn't there |