v1.9.9-pre-20: fix modbus device id
All checks were successful
Build and release .deb / Release (push) Successful in 56s

This commit is contained in:
Alex Janka 2025-01-09 15:53:17 +11:00
parent f41e763743
commit e914f2fd10
3 changed files with 5 additions and 4 deletions

4
Cargo.lock generated
View file

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

View file

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

View file

@ -293,7 +293,8 @@ impl Tristar {
tokio_modbus::client::rtu::attach_slave(modbus_serial, slave) tokio_modbus::client::rtu::attach_slave(modbus_serial, slave)
} }
crate::config::Transport::Tcp { ip, port } => { crate::config::Transport::Tcp { ip, port } => {
tokio_modbus::client::tcp::connect((*ip, *port).into()).await? let modbus_tcp = tokio::net::TcpStream::connect((*ip, *port)).await?;
tokio_modbus::client::tcp::attach_slave(modbus_tcp, slave)
} }
}; };