UART Command Parser Time Manager Data Store for SD Card for stm32l476 [it's not Licensed as BSD/GPLx]

Dependencies:   mbed SDFileSystem

Revision:
10:db2be22bc2f9
Parent:
9:c81d0df866f5
Child:
12:a45a9c65dc03
--- a/common/DeviceRepeater.cpp	Mon May 13 02:56:39 2019 +0000
+++ b/common/DeviceRepeater.cpp	Sat May 18 03:28:31 2019 +0000
@@ -9,8 +9,9 @@
     pDevRept->tick();
 }
 
-DeviceRepeater::DeviceRepeater(DeviceDriver *setDriver)
+DeviceRepeater::DeviceRepeater(int setDeviceID, DeviceDriver *setDriver)
 {
+    deviceID = setDeviceID;
     pClock = new Ticker();
     selected_id = NOT_ID_SELECTED;
     pDriver = setDriver;
@@ -137,7 +138,7 @@
         /* TODO - kick Senser and send XFD/XDS Data */
         /*****************************************************/
         /** Sensing and Sending Data **/
-        pDriver->exec(pUR->getCurrentUart(), pSds->getFilePointer());
+        pDriver->exec(deviceID, pUR->getCurrentUart(), pSds->getFilePointer());
     }
     if (repeat_remain_sec <= 0) {
         if (repeat_remain_cnt > 0) {