Skip to content

Commit

Permalink
change if also in eaton_abm_enabled_fun()
Browse files Browse the repository at this point in the history
Signed-off-by: DaRK AnGeL <[email protected]>
  • Loading branch information
masterwishx committed Oct 18, 2024
1 parent 112b602 commit 4b1e925
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mge-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static const char *eaton_abm_enabled_fun(double value)
{
advanced_battery_monitoring = value;

if (advanced_battery_monitoring == ABM_ENABLED_TYPE)
if (dstate_getinfo("battery.charger.type"))
{
upsdebugx(2, "ABM is %s", (advanced_battery_monitoring == 4) ? "enabled" : "disabled");
}
Expand Down

0 comments on commit 4b1e925

Please sign in to comment.