Team Fox / Mbed 2 deprecated BAE_QM_MAR9

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_5thJan_azad by Team Fox

Revision:
22:950dbe9fbeb8
Parent:
20:949d13045431
Child:
26:c8655e0ec73a
Child:
27:61c856be467e
--- a/main.cpp	Fri Jul 01 17:55:30 2016 +0000
+++ b/main.cpp	Fri Jul 01 18:14:34 2016 +0000
@@ -8,6 +8,7 @@
 #define tm_len 135
 #define tc_len 11
 #define batt_heat_low 20
+#define print 1
 
 DigitalOut time_wdog(PIN68);// for determining the time between code
 
@@ -310,7 +311,7 @@
     for(int i=0;i<8;i++)
         {  
             read[i] = FCTN_BAE_RD_FLASH_ENTITY(i);
-            printf("\n\r val is read after starting %x  ",read[i]);
+            //printf("\n\r val is read after starting %x  ",read[i]);
         }
             
     if(read[0] == -1)
@@ -598,15 +599,15 @@
     EPS_MAIN_STATUS = 1; // Set EPS main status
     FLAG();
     EPS_MAIN_COUNTER+=1;
-    #if print
+    //if print
         pc.printf("\n\rEntered EPS   %f\n",t_start.read());
-    #endif
+    //#endif
     
     
     FCTN_BATT_TEMP_SENSOR_MAIN(actual_data.Batt_temp_actual);
-    #if print
+    //#if print
         pc.printf("\n\r Battery temperature %f %f" ,actual_data.Batt_temp_actual[0], actual_data.Batt_temp_actual[1]);
-    #endif
+    //#endif
     EPS_BATTERY_TEMP_STATUS = 1;          //set EPS_BATTERY_TEMP_STATUS
     if(EPS_BTRY_HTR_AUTO == 1)
         {
@@ -914,9 +915,9 @@
         }
     if(schedcount%3==0)
         {
-            //if(BAE_STANDBY!=0x04 && BAE_STANDBY!=0x05 && BAE_STANDBY!=0x06 && BAE_STANDBY!=0x07)
+            if(BAE_STANDBY!=0x04 && BAE_STANDBY!=0x05 && BAE_STANDBY!=0x06 && BAE_STANDBY!=0x07)
             //  time_wdog = 0;
-            // F_BCN();
+             F_BCN();
         }
     schedcount++;
     #if print