tweaked battery status

This commit is contained in:
WanderingPenwing 2024-07-31 15:32:58 +02:00
parent b457cf576e
commit 97f8e83b55
2 changed files with 2 additions and 2 deletions

View file

@ -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)
} }
@ -179,4 +179,4 @@ fn get_connection(networks: &Networks) -> Connection {
} }
return Connection::Wired return Connection::Wired
} }

BIN
turnip_v1.0.tar.gz Normal file

Binary file not shown.