Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
Diff: EPS.cpp
- 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)
