Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
151:9d47fe5ba805
Parent:
150:4db35c8234b4
Child:
162:5e8948b8044d
--- a/src/ModbusMaster/ModbusMaster.cpp	Fri Sep 30 13:35:28 2016 +0000
+++ b/src/ModbusMaster/ModbusMaster.cpp	Fri Sep 30 14:32:26 2016 +0000
@@ -49,7 +49,7 @@
                 if( status != true ) {
                     logInfo("(%d)read file failed, status=%d", __LINE__, status);
                 } else {
-                    logInfo("(%d)Read File SUCCESS: %s", __LINE__, ModbusMasterScratchBuf );
+                    logInfo("(%s:%d)loading File: %s", __func__, __LINE__, i->name );
                 }
 
                 parse( json_value, ModbusMasterScratchBuf );
@@ -59,7 +59,7 @@
                 VirtualCommandMap[id].opl = json_value["opl"].get<std::string>().c_str();
                 VirtualCommandMap[id].opr = json_value["opr"].get<std::string>().c_str();
                 VirtualCommandMap[id].op = json_value["op"].get<std::string>().c_str();
-                printf("\rProcessd virtual command file: id=%s\r\n", id.c_str());
+                logInfo("Processd virtual command file: id=%s", id.c_str());
                 continue;
             }
 
@@ -77,13 +77,11 @@
 
             if( regType != REG_TYPE_NONE ) {
 
-                logInfo("(%d)FOUND FILE: %s", __LINE__, i->name);
-
                 status = GLOBAL_mdot->readUserFile(i->name, ModbusMasterScratchBuf, 1024);
                 if( status != true ) {
                     logInfo("(%d)read file failed, status=%d", __LINE__, status);
                 } else {
-                    logInfo("(%d)Read File SUCCESS: %s", __LINE__, ModbusMasterScratchBuf );
+                    logInfo("(%s:%d)loading File: %s", __func__, __LINE__, i->name );
                 }
 
                 parse( json_value, ModbusMasterScratchBuf );
@@ -109,6 +107,8 @@
                 }
             }
         }
+        
+        osSignalSet(mainThreadId, sig_output_continue);
 
         // read modbus registers that have been configured.
         while ( true ) {