Latest FM Code with EEPROM

Dependencies:   FreescaleIAP SimpleDMA eeprom mbed-rtos mbed

Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by Team Fox

Revision:
270:9dacc1d8459a
Parent:
266:ae588e75cfa4
Child:
276:9e5b0085763d
diff -r 24c50959b0a4 -r 9dacc1d8459a COM_MNG_TMTC.h
--- a/COM_MNG_TMTC.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/COM_MNG_TMTC.h	Thu Jul 21 11:07:04 2016 +0000
@@ -880,8 +880,12 @@
                         else if(GETpid(tc_ptr)==0x40)
                         {                         
                             //gPC.printf("RESET_HK_COUNTER\r\n"); // call PWR_SWCH_ON function
-                            
-                            STANDBY_PRCS();
+                            if(tc_ptr->TC_STRING[4] == 0x00 || tc_ptr->TC_STRING[4] == 0x01)
+                            EN_PL = tc_ptr->TC_STRING[4];
+                            else if(tc_ptr->TC_STRING[5] == 0x00 || tc_ptr->TC_STRING[5] == 0x01)
+                            EN_HK = tc_ptr->TC_STRING[5];
+                            else if(tc_ptr->TC_STRING[6] == 0x00 || tc_ptr->TC_STRING[6] == 0x01)
+                            EN_RCV_SC = tc_ptr->TC_STRING[6];
                             Base_tm *tm_ptr_short = new Short_tm;
                             ACK_L234(tm_ptr_short,0xA0,GETpacket_seq_count(tc_ptr));
                             return tm_ptr_short;