
CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: COM_MNG_TMTC.h
- Revision:
- 272:9dacc1d8459a
- Parent:
- 266:ae588e75cfa4
--- 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;