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: main.cpp
- Revision:
- 87:051ec436e75f
- Parent:
- 85:55a87500895a
- Child:
- 92:0d6e6ff9b7c9
--- a/main.cpp Sat Dec 17 09:23:49 2016 +0000
+++ b/main.cpp Sat Dec 17 13:32:52 2016 +0000
@@ -602,7 +602,7 @@
else if((actual_data.power_mode<=2)||( (( ACS_STATE)&0x08) == 0x08))
{
//#if print
- pc.printf("\n\r Low Power \n\r");
+ pc.printf("\n\r \n\r");
//#endif
DRV_Z_EN = 0;
DRV_XY_EN = 0;
@@ -855,7 +855,7 @@
int BTG_MAIN_FLAG = FCTN_BATTERYGAUGE_MAIN(actual_data.Batt_gauge_actual, eps_btry_temp);
timer_FCTN_BATTERYGAUGE_MAIN.stop();
- if( BTG_MAIN_FLAG == 0 ) //Data not received
+ if( BTG_MAIN_FLAG == 1 ) //Data not received
{
actual_data.power_mode = 0;
EPS_BATTERY_GAUGE_STATUS = 0; //clear EPS_BATTERY_GAUGE_STATUS
