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:
- 30:738359dfdab1
- Parent:
- 28:c410a61238bb
- Child:
- 33:cb765aefa1b5
- Child:
- 46:4cb96ab2d1c8
--- a/src/ConfigurationHandler/Controls/SetpointControl.cpp Thu Sep 08 20:20:21 2016 +0000
+++ b/src/ConfigurationHandler/Controls/SetpointControl.cpp Thu Sep 08 21:07:47 2016 +0000
@@ -7,16 +7,15 @@
#include "SetpointControl.h"
#include "mDot.h"
#include "MbedJSONValue.h"
-#include <vector>
-#include <cstdlib>
#include <string>
extern mDot *GLOBAL_mdot;
bool SetpointControl::load(string _controlFile)
{
+ MbedJSONValue json_value;
controlFile = _controlFile;
-
+
// try to open the control file
mDot::mdot_file file = GLOBAL_mdot->openUserFile(controlFile.c_str(), mDot::FM_RDONLY);
if ( file.fd < 0 )
