CECS 490B RTOS / Mbed 2 deprecated LOC_master_firmware_042416

Dependencies:   mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
lhinh3431
Date:
Mon Apr 25 03:25:20 2016 +0000
Parent:
2:b258510a2573
Commit message:
April 24, 2016 20:25 REV0.3

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Apr 25 02:29:13 2016 +0000
+++ b/main.cpp	Mon Apr 25 03:25:20 2016 +0000
@@ -82,10 +82,10 @@
             }
             for(int i = 0; i < 3; i++) // Convert integer array to string
             {
-                mDimStr += data[i+4];
-                mTempStr += data[i+7];
-                sDimStr += data[i+12];
-                sTempStr += data[i+15];
+                mDimStr += data[i];
+                mTempStr += data[i+3];
+                sDimStr += data[i+6];
+                sTempStr += data[i+9];
             }
             
             if(data[0] > 1 || data[6] > 1) // Logic check for dim amount for both master and slave