Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
173:acfb464a4aec
Parent:
162:5e8948b8044d
Child:
174:515a8b684803
--- a/src/ModbusMaster/ModbusMaster.cpp	Mon Oct 03 18:10:31 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp	Tue Oct 04 12:25:35 2016 +0000
@@ -32,7 +32,6 @@
     bool status;
     RegisterType_t regType;
     bool move_up = true;
-    MbedJSONValue json_value;
 
     modbus_init(MB_BAUD_RATE);
     DigitalOut flu_power(PA_11);
@@ -40,10 +39,11 @@
 
     while( true ) {
 
+        MbedJSONValue json_value;
+
         // configure modbus registers based in all files that start with "input"
         std::vector<mDot::mdot_file> file_list = GLOBAL_mdot->listUserFiles();
         for (std::vector<mDot::mdot_file>::iterator i = file_list.begin(); i != file_list.end(); ++i) {
-
             if( (strncmp( i->name, "vcmd", (strlen("input")-1)) == 0) ) {
                 status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 1024);
                 if( status != true ) {