[Libnx] Changed PSM Defines

This commit is contained in:
M4xw 2021-06-26 01:14:37 +02:00 committed by m4xw
parent ac8a977492
commit 991b43d4ee
1 changed files with 3 additions and 3 deletions

View File

@ -790,7 +790,7 @@ static enum frontend_powerstate
frontend_switch_get_powerstate(int *seconds, int *percent)
{
uint32_t pct;
ChargerType ct;
PsmChargerType ct;
Result rc;
if (!psmInitialized)
return FRONTEND_POWERSTATE_NONE;
@ -810,8 +810,8 @@ frontend_switch_get_powerstate(int *seconds, int *percent)
switch (ct)
{
case ChargerType_Charger:
case ChargerType_Usb:
case PsmChargerType_EnoughPower:
case PsmChargerType_LowPower:
return FRONTEND_POWERSTATE_CHARGING;
default:
break;