Fan Control Demo

Dependencies:   mbed-rtos mbed

Fork of mbed_fota by KIM HyoengJun

Revision:
2:dba344c91bce
Parent:
1:5cf3a6c969be
Child:
3:1e70387e1337
diff -r 5cf3a6c969be -r dba344c91bce ext_fota/BleMsgHandler.cpp
--- a/ext_fota/BleMsgHandler.cpp	Mon Jun 22 07:36:06 2015 +0000
+++ b/ext_fota/BleMsgHandler.cpp	Mon Jun 22 09:43:13 2015 +0000
@@ -6,6 +6,7 @@
 {
     print_flag = 0;
     device = _device;
+    SerialM = new SerialManager(_device);
 }
 
 BleMsgHandler::BleMsgHandler(Serial *_device, Serial *_hostpc)
@@ -13,10 +14,12 @@
     print_flag = 1;
     device = _device;
     hostpc = _hostpc;
+    SerialM = new SerialManager(_device,_hostpc);
 }
 
 BleMsgHandler::~BleMsgHandler(void)
 {
+    free(SerialM);
 }
 
 void BleMsgHandler::PrintTitle(void)