diff options
| author | cpldcpu <cpldcpu@gmail.com> | 2013-12-16 09:34:40 +0100 | 
|---|---|---|
| committer | cpldcpu <cpldcpu@gmail.com> | 2013-12-16 09:34:40 +0100 | 
| commit | f32bf1b6c6c5f157f981c111e2ccce2399e4c509 (patch) | |
| tree | 0ee9995e6d79aea63713e7e0c7ae4fe31321421b | |
| parent | c6b12b287746ac950f4efcd1e5e872f5fe5acfe2 (diff) | |
| download | micronucleus-f32bf1b6c6c5f157f981c111e2ccce2399e4c509.tar.gz micronucleus-f32bf1b6c6c5f157f981c111e2ccce2399e4c509.tar.bz2 micronucleus-f32bf1b6c6c5f157f981c111e2ccce2399e4c509.zip | |
firmware: fix condition for EXECUTE
read high byte of user programm reset vector
| -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 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 */      } | 
