CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
270:9dacc1d8459a
Parent:
269:24c50959b0a4
Child:
276:9e5b0085763d
--- a/CDMS_HK.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/CDMS_HK.h	Thu Jul 21 11:07:04 2016 +0000
@@ -45,8 +45,9 @@
     gHK_THREAD->signal_wait(HK_SIGNAL);
     gPC.printf("\n\nEntering HK thread\n");
 
+    if(EN_HK == 0x00)
+    continue;
     gMutex.lock();
-
     CDMS_HK_MAIN_STATUS = 0x01;
     CDMS_HK_MAIN_COUNTER++;