diff --git a/client/cs_prefs.cpp b/client/cs_prefs.cpp index 544a3e2246..2a5e5ca214 100644 --- a/client/cs_prefs.cpp +++ b/client/cs_prefs.cpp @@ -291,11 +291,11 @@ int CLIENT_STATE::check_suspend_processing() { if (cp >= 0) { if (cp < 90) { hyst_state = true; - return SUSPEND_REASON_BATTERY_CHARGE; + return SUSPEND_REASON_BATTERY_CHARGING; } if (cp < 95) { if (hyst_state) { - return SUSPEND_REASON_BATTERY_CHARGE; + return SUSPEND_REASON_BATTERY_CHARGING; } } else { hyst_state = false; diff --git a/lib/common_defs.h b/lib/common_defs.h index 90474f7f16..c5bf00f844 100644 --- a/lib/common_defs.h +++ b/lib/common_defs.h @@ -118,7 +118,7 @@ enum BATTERY_STATE { BATTERY_STATE_DISCHARGING, BATTERY_STATE_CHARGING, BATTERY_STATE_FULL, - BATTERY_STATE_OVERHEAT + BATTERY_STATE_OVERHEATED }; // Values of RESULT::state in client.