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:
- 126:c85ac6a8e9af
- Parent:
- 122:4db48b933115
- Child:
- 152:c03ebcda54ef
- Child:
- 156:44f87c5a83ae
- Child:
- 162:5e8948b8044d
--- a/src/ConfigurationHandler/ConfigurationHandler.cpp Fri Sep 23 15:13:04 2016 +0000 +++ b/src/ConfigurationHandler/ConfigurationHandler.cpp Fri Sep 23 16:13:20 2016 +0000 @@ -116,6 +116,8 @@ printf("\rLoading persistent controls: \n"); std::vector<mDot::mdot_file> file_list = GLOBAL_mdot->listUserFiles(); + + loaded = true; 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 ) { @@ -142,8 +144,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?? - // do nothing + // TODO: delete any timed manual control, not continuous... + GLOBAL_mdot->deleteUserFile(i->name); } else { // not a control file } @@ -185,6 +187,8 @@ delete timerControl; } else { timerTable[msg->controlFile] = timerControl; + // start the timer control + timerControl->start(); } break; }