This could be the Bluetooth stack getting in the way - I think most likely it worked before Bluetooth got added, but then when Bluetooth is running it gets upset when certain things are accessed directly.
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.
This could be the Bluetooth stack getting in the way - I think most likely it worked before Bluetooth got added, but then when Bluetooth is running it gets upset when certain things are accessed directly.
I've added a bug for this: https://github.com/espruino/Espruino/issues/1010
Chances are the call needs to use a softdevice API rather than using the hardware directly