Skip to content

Commit

Permalink
drivers/nutdrv_qx.c: qx_initbattery(): extend default batt.volt.high …
Browse files Browse the repository at this point in the history
…range when guessing battery.packs count [networkupstools#1279]

Signed-off-by: Alex W Baulé <[email protected]>
  • Loading branch information
jimklimov authored and alexwbaule committed Oct 4, 2023
1 parent 27ab34e commit 0406845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nutdrv_qx.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ static void qx_initbattery(void)
* therefore choose the one with the highest multiplier. */
for (i = 0; packs[i] > 0; i++) {

if (packs[i] * batt.volt.act > 1.2 * batt.volt.nom) {
if (packs[i] * batt.volt.act > 1.25 * batt.volt.nom) {
continue;
}

Expand Down

0 comments on commit 0406845

Please sign in to comment.