working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
328:2242ebc71be8
Parent:
322:7d906d34aaff
Child:
330:6ac9661f2e10
--- a/FMS_all.h	Fri Dec 16 08:53:12 2016 +0000
+++ b/FMS_all.h	Tue Dec 20 08:36:41 2016 +0000
@@ -1,3 +1,5 @@
+#ifndef FMS_ALL_INCLUDED
+#define FMS_ALL_INCLUDED
 
 // Includes MMS RAM functions also
 
@@ -359,10 +361,12 @@
         tm_pointer->TM_string[i+26] = (uint8_t)min_max_data.temp_min[i];
     }
 
-    tm_pointer->TM_string[47] = GPIO_STATUS &0xFF00;
-    tm_pointer->TM_string[48] |= (GPIO_STATUS<<11) & 0xF000;
+    tm_pointer->TM_string[42] = GPIO_STATUS>>8;
+    tm_pointer->TM_string[43] = (GPIO_STATUS<<3) & 0x00FF;
     
     TIME_LATEST_RTC= FCTN_CDMS_RD_RTC() >> 7;
     for(int i = 0; i<4; i++)
-        tm_pointer->TM_string[48+i] = TIME_LATEST_RTC >> (3-i)*8; 
-}
\ No newline at end of file
+        tm_pointer->TM_string[44+i] = TIME_LATEST_RTC >> (3-i)*8; 
+}
+
+#endif
\ No newline at end of file