summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/main.c b/firmware/main.c
index 3fca133..04b0e33 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -324,7 +324,7 @@ int main(void) {
# endif
// Only try to execute program if reset vector is set - bootloader will not time out with erased memory
- if (!bootLoaderCondition()&&(pgm_read_byte(BOOTLOADER_ADDRESS - TINYVECTOR_RESET_OFFSET)!=0xff)) fireEvent(EVENT_EXECUTE);
+ if (!bootLoaderCondition()&&(pgm_read_byte(BOOTLOADER_ADDRESS - TINYVECTOR_RESET_OFFSET + 1)!=0xff)) fireEvent(EVENT_EXECUTE);
} while(!isEvent(EVENT_EXECUTE)); /* main event loop runs as long as program is not executed */
}