George Djabarov
/
mbed-os-example-mesh-minimal
mbed Open Thread example with nRF52-DK (nRF52840 SoC).
Diff: mesh_nvm.cpp
- Revision:
- 87:a6a7b64f4f48
- Parent:
- 78:fc7a81fd524c
- Child:
- 109:4799ef092b94
--- a/mesh_nvm.cpp Wed Jun 06 13:15:08 2018 +0100 +++ b/mesh_nvm.cpp Mon Jun 18 09:15:17 2018 +0100 @@ -15,6 +15,7 @@ */ #include "mbed.h" +#include "Nanostack.h" /* Application configuration values from json */ #define MESH_LOWPAN 1 @@ -68,7 +69,9 @@ } if (!mount_status) { + Nanostack::get_instance(); // ensure Nanostack is initialised ns_file_system_set_root_path("/fs/"); + // Should be like: Nanostack::get_instance().file_system_set_root_path("/fs/"); } }