summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'firmware')
-rw-r--r--firmware/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/main.c b/firmware/main.c
index d9f9949..6bc20d5 100644
--- a/firmware/main.c
+++ b/firmware/main.c
@@ -369,8 +369,8 @@ static inline void leaveBootloader(void) {
USB_INTR_CFG = 0; /* also reset config bits */
// clear magic word from bottom of stack before jumping to the app
- *(uint8_t*)(RAMEND) = 0x00;
- *(uint8_t*)(RAMEND-1) = 0x00;
+ *(uint8_t*)(RAMEND) = 0x00; // A single write is sufficient to invalidate magic word
+ // *(uint8_t*)(RAMEND-1) = 0x00;
// adjust clock to previous calibration value, so user program always starts with same calibration
// as when it was uploaded originally