From 9a473a63622fd763e0e8097c244f2af1b90f851a Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 13 Jul 2014 20:41:59 -0700 Subject: [PATCH] Power: Fix PowerState=STATUS for medium battery capacity Due to backwards compatibility, medium will return the same value as high (4). --- Plugins/PluginPower/PowerPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/PluginPower/PowerPlugin.cpp b/Plugins/PluginPower/PowerPlugin.cpp index b531bcfe..cce3b956 100644 --- a/Plugins/PluginPower/PowerPlugin.cpp +++ b/Plugins/PluginPower/PowerPlugin.cpp @@ -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;