battery as i8
This commit is contained in:
parent
f29d4a2a92
commit
c2598f3d26
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
format!(
|
||||
"BAT{}:{}%({})|",
|
||||
batc,
|
||||
(bat_res.state_of_charge().value * 100.0).to_string(),
|
||||
((bat_res.state_of_charge().value * 100.0) as i8).to_string(),
|
||||
bat_res.state().to_string(),
|
||||
)
|
||||
.as_str(),
|
||||
|
|
Loading…
Add table
Reference in a new issue