Skip to content

Commit

Permalink
fix boot code for esp8266
Browse files Browse the repository at this point in the history
  • Loading branch information
tve committed Aug 7, 2016
1 parent bce4ade commit 8d2f1b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jswrap_flash.c
Expand Up @@ -523,6 +523,9 @@ bool jsfLoadBootCodeFromFlash(bool isReset) {
if (isReset && !(bootCodeInfo & BOOT_CODE_RUN_ALWAYS)) return false;

code = (char *)(FLASH_DATA_LOCATION);
#ifdef ESP8266
code += 0x40200000;
#endif
#endif
jsvUnLock(jspEvaluate(code, true /* We are expecting this ptr to hang around */));
return true;
Expand Down

0 comments on commit 8d2f1b4

Please sign in to comment.