Erick / Mbed 2 deprecated ICE_BLE_TEST

Dependencies:   NaturalTinyShell_ice libmDot-12Sept mbed-rtos mbed

Fork of ICE by Erick

Revision:
12:ea87887ca7ad
Parent:
5:5e77a1db4d45
Child:
13:c80c283f9db2
--- a/src/ConfigurationHandler/Controls/SetpointControl.h	Tue Sep 06 22:09:39 2016 +0000
+++ b/src/ConfigurationHandler/Controls/SetpointControl.h	Wed Sep 07 13:22:28 2016 +0000
@@ -16,12 +16,16 @@
     unsigned int    interval;           // interval at which we run
     unsigned int    priority;           // priority at which we run
 public:
-    SetpointControl(const char* filename) : controlFile(filename)
-    {
-        printf("\r%s: SetpointControl instantiated with controlFile %s\n",
-            __func__, controlFile.c_str());
+    SetpointControl(string filename) : controlFile(filename) {
+        printf("\r%s instantiated with control file %s\n",
+               __func__, controlFile.c_str());
     }
-    string getControlFile(void) { return controlFile; } 
+    ~SetpointControl() {
+        printf("\r%s destructor invoked\n", __func__);
+    }
+    string getControlFile(void) {
+        return controlFile;
+    }
 };
 
 #endif