Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
177:9ec90c8e3ce1
Parent:
171:fb29030d4eaf
Child:
182:6408a4ae99c3
Child:
183:44f7fea6b208
--- a/src/OutputTask/OutputTask.cpp	Tue Oct 04 12:35:18 2016 +0000
+++ b/src/OutputTask/OutputTask.cpp	Tue Oct 04 15:46:51 2016 +0000
@@ -232,8 +232,6 @@
 {
     StringOutputVector_t::iterator pos;
     
-    printf("\rTotal size = %u\n", sizeof(outputMap)); 
-
     for ( pos = outputMap.begin(); pos != outputMap.end(); ++pos ) {
         if ( pos->second.empty() ) {
             printf("\r  [%s]->[no controls]\n", pos->first.c_str());
@@ -259,7 +257,7 @@
  *****************************************************************************/
 static int createOutput(const char *outputFile)
 {
-    char dataBuf[512];
+    char dataBuf[MAX_FILE_SIZE];
     int status = GLOBAL_mdot->readUserFile(outputFile, (void *)dataBuf, sizeof(dataBuf));
     if ( status != true ) {
         logError("%s failed to read %s", __func__, outputFile);
@@ -279,7 +277,6 @@
     return 0;
 }
 
-
 /*****************************************************************************
  * Function:            enableOutputReq
  * Description:         Display a list of outputs and its controls
@@ -437,9 +434,9 @@
 
             logInfo("%s: FOUND OUTPUT FILE: %s", __func__, i->name);
 
-            char scratchBuf[512];
+            char scratchBuf[MAX_FILE_SIZE];
 
-            status = GLOBAL_mdot->readUserFile(i->name, scratchBuf, 512);
+            status = GLOBAL_mdot->readUserFile(i->name, scratchBuf, MAX_FILE_SIZE);
             if( status != true ) {
                 logInfo("(%d)read file failed, status=%d", __LINE__, status);
             } else {