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/ConfigurationHandler/ConfigurationHandler.cpp
- Revision:
- 208:784c46652863
- Parent:
- 207:55aabde2d4bf
- Child:
- 217:d5a2ff093319
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp Mon Oct 10 12:51:32 2016 +0000 +++ b/src/ConfigurationHandler/ConfigurationHandler.cpp Mon Oct 10 13:55:23 2016 +0000 @@ -245,13 +245,25 @@ StringSetpointMap::iterator pos; pos = setpointTable.find(msg->controlFile); if ( pos != setpointTable.end() ) { - printf("\rDEBUG: found the control!"); - printf("\r-> %s\n", pos->second->getId().c_str()); int rc = pos->second->load(msg->controlFile); if ( rc != true ) { - logError("\rFailed to reload the setpoint control\n"); + logError("\rFailed to reload the setpoint control %s\n", msg->controlFile); } else { - logInfo("\rReloaded the setpoint control\n"); + logInfo("\rReloaded the setpoint control %s\n", msg->controlFile); + } + } + break; + } + case CONTROL_MANUAL: { + // find the manual control in the table + StringManualMap::iterator pos; + pos = manualTable.find(msg->controlFile); + if ( pos != manualTable.end() ) { + int rc = pos->second->load(msg->controlFile); + if ( rc != true ) { + logError("\rFailed to reload the manual control %s\n", msg->controlFile); + } else { + logInfo("\rReloaded the manual control %s\n", msg->controlFile); } } break;