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/FailsafeControl.cpp
- Revision:
- 276:851554207c77
- Parent:
- 274:e2caebc7c65e
diff -r 76285569fb64 -r 851554207c77 src/ConfigurationHandler/Controls/FailsafeControl.cpp
--- a/src/ConfigurationHandler/Controls/FailsafeControl.cpp Wed Oct 26 20:10:37 2016 +0000
+++ b/src/ConfigurationHandler/Controls/FailsafeControl.cpp Wed Oct 26 20:31:39 2016 +0000
@@ -61,6 +61,8 @@
lfs_data.value = atof(cJSON_GetObjectItem(root, "lfsValue")->valuestring);
lfs_data.dutyCycle = atoi(cJSON_GetObjectItem(root, "lfsDutyCycle")->valuestring);
lfs_data.interval = atoi(cJSON_GetObjectItem(root, "lfsInterval")->valuestring);
+
+ cJSON_Delete(root);
return true;
}
