소스 검색

Treat Unknown as full

Unknown means the charging threshold was reached
Thomas Dy 9 년 전
부모
커밋
304d2ca156
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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
         }