tweaked battery status
This commit is contained in:
parent
b457cf576e
commit
97f8e83b55
|
@ -91,7 +91,7 @@ fn battery_display(battery: &battery::Battery) -> String {
|
||||||
|
|
||||||
let state = BATTERY_STATE[(battery.state_of_charge().value * 5.0) as usize];
|
let state = BATTERY_STATE[(battery.state_of_charge().value * 5.0) as usize];
|
||||||
let charge_status = if battery.time_to_empty().is_none() { " " } else { "" };
|
let charge_status = if battery.time_to_empty().is_none() { " " } else { "" };
|
||||||
format!("{}{}", charge_status, state)
|
format!("{}{} ", charge_status, state)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
turnip_v1.0.tar.gz
Normal file
BIN
turnip_v1.0.tar.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue