Switch: Round battery up

This commit is contained in:
Vicki Pfau 2018-09-20 11:20:05 -07:00
parent d7ec20900c
commit b712a7208d
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ static int _batteryState(void) {
u32 charge;
int state = 0;
if (R_SUCCEEDED(psmGetBatteryChargePercentage(&charge))) {
state = charge / 25;
state = (charge + 12) / 25;
}
ChargerType type;
if (R_SUCCEEDED(psmGetChargerType(&type)) && type) {