v1.9.9-pre-12: fix pl load current
All checks were successful
Build and release .deb / Release (push) Successful in 55s

This commit is contained in:
Alex Janka 2024-12-30 22:07:28 +11:00
parent 4445f874ea
commit 9272aa20ad
3 changed files with 4 additions and 4 deletions

4
Cargo.lock generated
View file

@ -239,7 +239,7 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "charge-controller-supervisor"
version = "1.9.9-pre-11"
version = "1.9.9-pre-12"
dependencies = [
"chrono",
"clap",
@ -2203,7 +2203,7 @@ dependencies = [
[[package]]
name = "tesla-charge-controller"
version = "1.9.9-pre-11"
version = "1.9.9-pre-12"
dependencies = [
"chrono",
"clap",

View file

@ -4,7 +4,7 @@ default-members = ["charge-controller-supervisor"]
resolver = "2"
[workspace.package]
version = "1.9.9-pre-11"
version = "1.9.9-pre-12"
[workspace.lints.clippy]
pedantic = "warn"

View file

@ -189,7 +189,7 @@ impl Pli {
duty_cycle: f64::from(self.read_ram(PlRamAddress::Dutycyc).await?) / 255.,
internal_charge_current: f64::from(self.read_ram(PlRamAddress::Cint).await?)
* (4. / 10.),
internal_load_current: f64::from(self.read_ram(PlRamAddress::Lint).await?) * (4. / 10.),
internal_load_current: f64::from(self.read_ram(PlRamAddress::Lint).await?) * (2. / 10.),
battery_temp: f64::from(self.read_ram(PlRamAddress::Battemp).await?),
regulator_state: self.read_ram(PlRamAddress::Rstate).await?.into(),
})