diff options
author | cpldcpu <cpldcpu@gmail.com> | 2014-02-21 09:10:05 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2014-02-21 09:10:05 +0100 |
commit | e41772b00b450ecb67a6d2e1eaf28647a9df4a54 (patch) | |
tree | c7e4613478a9ab47757b7966407529720d7c0027 /firmware/main.c | |
parent | 2297c1546d74a3cdeed5e3a3c064ca75f122ee4a (diff) | |
download | micronucleus-e41772b00b450ecb67a6d2e1eaf28647a9df4a54.tar.gz micronucleus-e41772b00b450ecb67a6d2e1eaf28647a9df4a54.tar.bz2 micronucleus-e41772b00b450ecb67a6d2e1eaf28647a9df4a54.zip |
firmware: dont test for 00 in store calibration.
This is an impossible combination and will never occur, so no testing is
needed. Saves 4 bytes.
Diffstat (limited to 'firmware/main.c')
-rw-r--r-- | firmware/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/main.c b/firmware/main.c index d60798a..59e4616 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -233,7 +233,7 @@ static inline void leaveBootloader(void) { // adjust clock to previous calibration value, so user program always starts with same calibration // as when it was uploaded originally unsigned char stored_osc_calibration = pgm_read_byte(BOOTLOADER_ADDRESS - TINYVECTOR_OSCCAL_OFFSET); - if (stored_osc_calibration != 0xFF && stored_osc_calibration != 0x00) { + if (stored_osc_calibration != 0xFF) { OSCCAL=stored_osc_calibration; nop(); } |