Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed
Fork of ICE by
Diff: src/OutputTask/OutputTask.cpp
- 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 {
