Fix charger status reporting (VIN overvoltage/low load bits were swapped)

This commit is contained in:
Ondrej Jirman 2022-01-19 03:32:34 +01:00
parent 013149dc89
commit 024d52263e

View File

@ -282,8 +282,8 @@ void power_status(int fd)
r0 & BIT(2) ? " cv_timeout" : "",
r0 & BIT(1) ? " chg_timeout" : "",
r0 & BIT(0) ? " trickle_timeout" : "",
r1 & BIT(6) ? " VIN overvoltage" : "",
r1 & BIT(5) ? " <= 75mA load" : ""
r1 & BIT(5) ? " VIN overvoltage (> 5.6V)" : "",
r1 & BIT(6) ? " <= 75mA load" : ""
);
printf("Button: %02hhx (%s%s%s%s)\n", r2,