From e41772b00b450ecb67a6d2e1eaf28647a9df4a54 Mon Sep 17 00:00:00 2001 From: cpldcpu Date: Fri, 21 Feb 2014 09:10:05 +0100 Subject: 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. --- firmware/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit v1.2.3