From df549f5e098afd1cd80d26b2486f699709a965cf Mon Sep 17 00:00:00 2001 From: Jessica Stokes Date: Thu, 2 Jun 2022 21:59:56 -0700 Subject: [PATCH] Correct battery code path for Kobo Libra 2 fixes #237 (though #185 is possibly a more robust solution!) --- src/battery/kobo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battery/kobo.rs b/src/battery/kobo.rs index 3b123295..24388e7b 100644 --- a/src/battery/kobo.rs +++ b/src/battery/kobo.rs @@ -31,7 +31,7 @@ pub struct KoboBattery { impl KoboBattery { pub fn new() -> Result { - 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)