Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Just after the device popup to remove charger, the battery level reported by device was 89 %

Battery Scale 65535
Battery Level 58981
Battery Level Percent 89 = (100*58981)/65535

IBATTERY_GetBatteryLevel(ibattery, &batteryLevel);
DBGPRINTF("IBATTERY_GetBatteryLevel return: %d", ret);
if(ret==0)
{
DBGPRINTF(" Battery Scale %u", GETBATTERYSCALE(batteryLevel);
DBGPRINTF(" Battery Level %u", GETBATTERYLEVEL(batteryLevel);
DBGPRINTF(" Battery Level Percent %u", (100*GETBATTERYLEVEL(batteryLevel))/GETBATTERYSCALE(batteryLevel);
}

Please let me know if some one face the same issue with Casio devices ?

what are the values of 
IBATTERY_GetBatteryChargerStatus() & IBATTERY_GetBatteryStatus() at that point

what are the values of 
IBATTERY_GetBatteryChargerStatus() & IBATTERY_GetBatteryStatus() at that point