Skip to content

Commit

Permalink
bat.d/lg: consider only one battery
Browse files Browse the repository at this point in the history
Rationale: avoid bogus output line in simulation tests.
  • Loading branch information
linrunner committed Jan 12, 2025
1 parent 58c3d7f commit a73ec46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bat.d/35-lg
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ batdrv_apply_configured_thresholds () {
if batdrv_select_battery "$bat"; then
eval stop_thresh="\$STOP_CHARGE_THRESH_${_bt_cfg_bat}"
batdrv_write_thresholds "DEF" "$stop_thresh" 1 1; rc=$?
break # one battery only
fi
done

Expand Down

0 comments on commit a73ec46

Please sign in to comment.