inverted logic for charger connected lmao
This commit is contained in:
parent
0b5ca36bae
commit
4f29b3fcf8
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -2256,7 +2256,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tesla-charge-controller"
|
||||
version = "0.2.7"
|
||||
version = "0.2.8"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"chrono",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tesla-charge-controller"
|
||||
version = "0.2.7"
|
||||
version = "0.2.8"
|
||||
edition = "2021"
|
||||
license = "MITNFA"
|
||||
description = "Controls Tesla charge rate based on solar charge data"
|
||||
|
|
|
@ -57,7 +57,7 @@ impl ChargeState {
|
|||
|
||||
impl From<teslatte::vehicles::ChargeState> for ChargeState {
|
||||
fn from(value: teslatte::vehicles::ChargeState) -> Self {
|
||||
let charger_connected = value.conn_charge_cable == "<invalid>";
|
||||
let charger_connected = value.conn_charge_cable != "<invalid>";
|
||||
ChargeState {
|
||||
battery_level: value.battery_level,
|
||||
battery_range: value.battery_range,
|
||||
|
|
Loading…
Reference in a new issue