working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
206:fba4aeebf004
Parent:
114:9fb55057b13f
Child:
207:28a07943dded
--- a/Compression.h	Wed Jun 29 14:17:34 2016 +0000
+++ b/Compression.h	Thu Jun 30 14:00:33 2016 +0000
@@ -280,7 +280,8 @@
                 if(id == 1){    //below thereshold
                     space = adjust(1,0,pointer,8);
                     space = adjust(4,3,pointer,space);
-                    FSC_science = FCTN_SD_MNGR(3);
+                    FCTN_SD_MNGR();
+                    FSC_science = FSC_CURRENT[3];
                     //gPC.printf("SID = 3, FSC = %02X\r\n", FSC_science);
                     frames[id][1] = (FSC_science>>24)&0xff;
                     frames[id][2] = (FSC_science>>16)&0xff;
@@ -573,7 +574,8 @@
                 pointer = frames[id];
                 space = adjust(1,0,pointer,8);
                 space = adjust(4,1,pointer,space);
-                FSC_science = FCTN_SD_MNGR(1);
+                FCTN_SD_MNGR();
+                FSC_science = FSC_CURRENT[1];
                 //gPC.printf("SID = 1, FSC = %02X\r\n", FSC_science);
                 frames[id][1] = (FSC_science>>16)&0xff;
                 frames[id][2] = (FSC_science>>8)&0xff;