diff options
author | cpldcpu <cpldcpu@gmail.com> | 2014-02-18 13:17:51 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2014-02-18 13:17:51 +0100 |
commit | 9ffd24e4234ea9cbbbfcbe2bfcda249e682a33cb (patch) | |
tree | 920f4fa89ba4d954d0d978e12ce1cb1c9ec4d8bc | |
parent | e9e56c98fdd8d75af032146130be89bb39c852bc (diff) | |
download | micronucleus-9ffd24e4234ea9cbbbfcbe2bfcda249e682a33cb.tar.gz micronucleus-9ffd24e4234ea9cbbbfcbe2bfcda249e682a33cb.tar.bz2 micronucleus-9ffd24e4234ea9cbbbfcbe2bfcda249e682a33cb.zip |
firmware: update reset offset to -4
-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 f85e9ca..981c8c1 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -223,7 +223,7 @@ static inline void leaveBootloader(void) { } #endif - asm volatile ("rjmp __vectors - 2"); // jump to application reset vector at end of flash + asm volatile ("rjmp __vectors - 4"); // jump to application reset vector at end of flash for (;;); // Make sure function does not return to help compiler optimize } |