VERY STUPID off by one error
All checks were successful
Build .deb on release / Build-Deb (push) Successful in 1m52s

This commit is contained in:
Alex Janka 2024-01-28 11:57:36 +11:00
parent b1de54501c
commit 0f69702474
3 changed files with 14 additions and 14 deletions

2
Cargo.lock generated
View file

@ -2554,7 +2554,7 @@ dependencies = [
[[package]]
name = "tesla-charge-controller"
version = "1.1.1"
version = "1.1.2"
dependencies = [
"chrono",
"clap 4.4.11",

View file

@ -1,6 +1,6 @@
[package]
name = "tesla-charge-controller"
version = "1.1.1"
version = "1.1.2"
edition = "2021"
license = "MITNFA"
description = "Controls Tesla charge rate based on solar charge data"

View file

@ -304,18 +304,18 @@ impl Tristar {
}
enum TristarRamAddress {
AdcVbFMed = 25,
AdcVaF = 28,
Tbatt = 38,
AdcIbFShadow = 29,
AdcIaFShadow = 30,
ChargeState = 51,
VbRef = 52,
PowerOutShadow = 59,
PowerInShadow = 60,
SweepPinMax = 61,
SweepVmp = 62,
SweepVoc = 63,
AdcVbFMed = 0x0018,
AdcVaF = 0x001B,
AdcIbFShadow = 0x001C,
AdcIaFShadow = 0x001D,
Tbatt = 0x0025,
ChargeState = 0x0032,
VbRef = 0x0033,
PowerOutShadow = 0x003A,
PowerInShadow = 0x003B,
SweepPinMax = 0x003C,
SweepVmp = 0x003D,
SweepVoc = 0x003E,
}
impl std::ops::Index<TristarRamAddress> for [u16] {