mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix battstats decimal places on wattage
This commit is contained in:
parent
226281c138
commit
18b97cea83
1 changed files with 1 additions and 1 deletions
|
|
@ -367,7 +367,7 @@ fn xmain() -> ! {
|
||||||
};
|
};
|
||||||
wattage = wattage.abs();
|
wattage = wattage.abs();
|
||||||
if battstats_phase {
|
if battstats_phase {
|
||||||
write!(&mut battstats_tv, "{}W{}{:.2}V {}%", wattage, sign, stats.voltage as f32 / 1000.0, stats.soc)
|
write!(&mut battstats_tv, "{:.3}W{}{:.2}V {}%", wattage, sign, stats.voltage as f32 / 1000.0, stats.soc)
|
||||||
.expect("|status: can't write string");
|
.expect("|status: can't write string");
|
||||||
} else {
|
} else {
|
||||||
if let Some(ssid) = wifi_status.ssid {
|
if let Some(ssid) = wifi_status.ssid {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue