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:
- 77:43e0a3d9e536
- Parent:
- 75:96512ccc0443
- Child:
- 86:189c125d8878
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp Mon Sep 19 14:46:03 2016 +0000 +++ b/src/ConfigurationHandler/ConfigurationHandler.cpp Mon Sep 19 21:03:14 2016 +0000 @@ -122,13 +122,13 @@ static bool loaded = false; if ( !loaded ) { // lazy protection - // loop through all the control files and create the controls - printf("\rLoading persistent controls\n"); + + printf("\rLoading persistent controls: \n"); 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, CONTROL_SP_STR, strlen(CONTROL_SP_STR)) == 0 ) { - // load the setpoint control + // create the setpoint control Message_t msg; msg.control = CONTROL_SETPOINT; strncpy(msg.controlFile, i->name, sizeof(msg.controlFile)); @@ -138,7 +138,7 @@ printf("\r control %s loaded.\n", msg.controlFile); } } else if ( strncmp( i->name, CONTROL_TM_STR, strlen(CONTROL_TM_STR)) == 0 ) { - // load the timer control + // create the timer control Message_t msg; msg.control = CONTROL_TIMER; strncpy(msg.controlFile, i->name, sizeof(msg.controlFile)); @@ -148,7 +148,8 @@ printf("\r control %s loaded.\n", msg.controlFile); } } else if ( strncmp( i->name, CONTROL_MN_STR, strlen(CONTROL_MN_STR)) == 0 ) { - // TODO: load the manual control -> these may not persist + // TODO: load the manual control -> these may not persist?? + // do nothing } else { // not a control file }