Explorar el Código

Treat Unknown as full

Unknown means the charging threshold was reached
Thomas Dy hace 9 años
padre
commit
304d2ca156
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/sensors/tp_battery.rs

+ 1 - 0
src/sensors/tp_battery.rs

@@ -42,6 +42,7 @@ impl TPBatterySensor {
     fn parse_status(s: &str) -> Status {
         match s {
             "Full" => Status::FULL,
+            "Unknown" => Status::FULL,
             "Charging" => Status::CHARGING,
             _ => Status::DISCHARGING
         }