Skip to content

Commit

Permalink
Correct battery code path for Kobo Libra 2
Browse files Browse the repository at this point in the history
fixes baskerville#237 (though baskerville#185 is possibly a more robust solution!)
  • Loading branch information
ticky committed Jun 3, 2022
1 parent 0f7fdea commit df549f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/battery/kobo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct KoboBattery {

impl KoboBattery {
pub fn new() -> Result<KoboBattery, Error> {
let base = if CURRENT_DEVICE.mark() != 8 {
let base = if CURRENT_DEVICE.mark() < 8 {
Path::new(BATTERY_INTERFACE_A)
} else {
Path::new(BATTERY_INTERFACE_B)
Expand Down

0 comments on commit df549f5

Please sign in to comment.