aboutsummaryrefslogtreecommitdiffstats
path: root/src/power/sys/linux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/power/sys/linux.rs')
-rw-r--r--src/power/sys/linux.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/power/sys/linux.rs b/src/power/sys/linux.rs
index 670498a..9b4bcc4 100644
--- a/src/power/sys/linux.rs
+++ b/src/power/sys/linux.rs
@@ -39,6 +39,7 @@ impl super::PowerSupplyType {
match ty {
"Mains" => super::PowerSupplyType::AC,
"Battery" => super::PowerSupplyType::Battery,
+ "USB" => super::PowerSupplyType::Other,
_ => panic!("unknown power supply type {}", ty),
}
}