Ahh! I don't know why this happened! So i just reversed it.
diff --git a/targets/nrf5x/jshardware.c b/targets/nrf5x/jshardware.c index ca501bb..ac937f4 100644 --- a/targets/nrf5x/jshardware.c +++ b/targets/nrf5x/jshardware.c @@ -54,8 +54,8 @@ USB data receive is broken, although examples+config seem almost identical. [#include](https://forum.espruino.com/search/?q=%23include) "bluetooth.h" [#include](https://forum.espruino.com/search/?q=%23include) "bluetooth_utils.h" [#include](https://forum.espruino.com/search/?q=%23include) "jswrap_bluetooth.h" -#else [#include](https://forum.espruino.com/search/?q=%23include) "nrf_sdm.h" +#else [#include](https://forum.espruino.com/search/?q=%23include) "nrf_temp.h" void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info) { } @@ -2493,7 +2493,7 @@ bool jshFlashErasePages(uint32_t addr, uint32_t byteLength) { uint8_t sd_enabled = 0; - [#ifndef](https://forum.espruino.com/search/?q=%23ifndef) BLUETOOTH + [#ifdef](https://forum.espruino.com/search/?q=%23ifdef) BLUETOOTH sd_softdevice_is_enabled(&sd_enabled); [#endif](https://forum.espruino.com/search/?q=%23endif) while (byteLength>=4096 && !jspIsInterrupted()) { @@ -2662,7 +2662,7 @@ void jshFlashWrite(void * buf, uint32_t addr, uint32_t len) { if (jshFlashWriteProtect(addr)) return; uint32_t err = 0;
1 Attachment
@Chris3006 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ahh! I don't know why this happened! So i just reversed it.
1 Attachment