Team Fox / Mbed 2 deprecated workinQM_5thJan_azad

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of workinQM_10thDec by Team Fox

Revision:
26:c8655e0ec73a
Parent:
25:33f8257fcf63
--- a/EPS.cpp	Sat Jul 02 14:06:10 2016 +0000
+++ b/EPS.cpp	Sun Jul 03 19:25:48 2016 +0000
@@ -805,7 +805,9 @@
         vAlertMinMaxThreshold();//set min, max value of Valrt register
         vResetThresholdSet();//set threshold voltage for reset
         vResetAlertEnabled(true);//enable alert on reset for V < Vreset
-        write(REG_STATUS, read(REG_STATUS) & 0xFEFF);   //Clearing Reset Indicator bit
+        int ack = write(REG_STATUS, read(REG_STATUS) & 0xFEFF);   //Clearing Reset Indicator bit
+        if( ack == 0 ) printf("BTG init success\r\n");
+        else printf("BTG init failure\r\n");
 }
 
 int FCTN_BATTERYGAUGE_MAIN(float Battery_parameters[4], float temp)