Power: Fix PowerState=STATUS for medium battery capacity

Due to backwards compatibility, medium will return the same value as
high (4).
This commit is contained in:
Birunthan Mohanathas 2014-07-13 20:41:59 -07:00
parent 1cf0212e87
commit 9a473a6362

View File

@ -152,9 +152,9 @@ PLUGIN_EXPORT double Update(void* data)
{
return 3.0; // Low
}
else if (sps.BatteryFlag & 1)
else if (sps.BatteryFlag == 0 || sps.BatteryFlag & 1)
{
return 4.0; // High
return 4.0; // Medium/High
}
break;