Closed bddap closed 5 years ago
Nice crate btw.
Thanks :)
Are you using version from the crates.io or from the github? I think this was fixed in #10, but was not published yet.
I was using the version on crates.io.
Any chance you can test latest master?
Master works fine:
[
Battery {
vendor: Some(
"SMP"
),
model: Some(
"bq20z451"
),
serial_number: Some(
"D866466Q2BPFWLKFQ"
),
technology: Unknown,
state: Full,
capacity: 0.0,
temperature: Some(
30.17
),
percentage: 99.36493,
cycle_count: Some(
112
),
energy: 105011352,
energy_full: 105682516,
energy_full_design: 113000785,
energy_rate: 0,
voltage: 12907,
time_to_full: None,
time_to_empty: None
}
]
Yay! Unfortunately, I see that you are also affected by #8 bug, so I'll leave this issue opened for a while.
Going to try to fix it tomorrow and post a comment here.
Since #8 was closed, I'm closing this issue too.
Fixed versions were published to crates.io
Setup:
Error 😨:
OS: macOS High Sierra 10.13.6 17G5019 x86_64 Host: MacBookPro11,4