Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
7:c0c03193612d
Parent:
3:8ea4db957749
Child:
9:ef0ca2f8a8a6
--- a/src/main.cpp	Tue Sep 06 19:35:50 2016 +0000
+++ b/src/main.cpp	Tue Sep 06 20:08:13 2016 +0000
@@ -24,6 +24,9 @@
 // local function prototypes
 static void banner(void);
 
+// for file system access outside of main()
+ mDot *GLOBAL_mdot;
+
 /*****************************************************************************
  * Function:            banner()
  * Description:         Display the application boot banner
@@ -57,7 +60,7 @@
 int main( void )
 {
     mDot *dot;
-    dot = mDot::getInstance();
+    GLOBAL_mdot = dot = mDot::getInstance();
 
     // for signaling from the configuration handler 
     mainThreadId = osThreadGetId();