• Yes, I thought so. I was afraid the code

    [#if](https://forum.espruino.com/search/­?q=%23if) NRF_SD_BLE_API_VERSION<5
       softdevice_sys_evt_handler_set(jsh_sys_e­vt_handler);
    [#else](https://forum.espruino.com/searc­h/?q=%23else)
         NRF_SDH_SOC_OBSERVER(m_soc_observer, 1, jsh_sys_evt_handler, NULL);
    [#endif](https://forum.espruino.com/sear­ch/?q=%23endif)
    

    actually does not work well when softdevice is disabled and both those parts should probably be removed. Attached is something I use in my version with NRF.stop()/start(). In my experience when softdevice is off the events do not come and those same sd_flash_xx calls block and directly return success/error without invoking the handler.


    1 Attachment

About

Avatar for fanoush @fanoush started