mirror of
https://xff.cz/git/pinephone-keyboard/
synced 2024-11-09 14:05:43 +01:00
Fix charger status reporting (VIN overvoltage/low load bits were swapped)
This commit is contained in:
parent
013149dc89
commit
024d52263e
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue