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/Controls/SetpointControl.cpp
- Revision:
- 207:55aabde2d4bf
- Parent:
- 205:3c84af5f711f
- Child:
- 208:784c46652863
diff -r 4cc32901f3b3 -r 55aabde2d4bf src/ConfigurationHandler/Controls/SetpointControl.cpp --- a/src/ConfigurationHandler/Controls/SetpointControl.cpp Fri Oct 07 17:56:23 2016 +0000 +++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp Mon Oct 10 12:51:32 2016 +0000 @@ -1,9 +1,9 @@ /****************************************************************************** - * - * File: SetpointControl.cpp - * Desciption: ICE Setpoint Control class implementation - * - *****************************************************************************/ +* +* File: SetpointControl.cpp +* Desciption: ICE Setpoint Control class implementation +* +*****************************************************************************/ #include "SetpointControl.h" #include "mDot.h" #include "MbedJSONValue.h" @@ -27,11 +27,15 @@ { MbedJSONValue json_value; // JSON parsing element controlFile = _controlFile; + + printf("\r%s has been invoked!\n"); // open and read from the control file mDot::mdot_file file = GLOBAL_mdot->openUserFile(controlFile.c_str(), mDot::FM_RDONLY); - if ( file.fd < 0 ) + if ( file.fd < 0 ) { + logError("%s: failed to open %s\n", __func__, controlFile.c_str()); return false; + } // read the data into a buffer char dataBuf[MAX_FILE_SIZE]; @@ -61,7 +65,7 @@ !json_value.hasMember("hfs") || !json_value.hasMember("lfs") || !json_value.hasMember("tol") ) { - logError("Setpoint Control file is missing expexted tags"); + logError("Setpoint Control file is missing expected tags"); return false; }