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]]
|
[[package]]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.2.7"
|
version = "0.2.8"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-channel",
|
"async-channel",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "tesla-charge-controller"
|
name = "tesla-charge-controller"
|
||||||
version = "0.2.7"
|
version = "0.2.8"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MITNFA"
|
license = "MITNFA"
|
||||||
description = "Controls Tesla charge rate based on solar charge data"
|
description = "Controls Tesla charge rate based on solar charge data"
|
||||||
|
|
|
@ -57,7 +57,7 @@ impl ChargeState {
|
||||||
|
|
||||||
impl From<teslatte::vehicles::ChargeState> for ChargeState {
|
impl From<teslatte::vehicles::ChargeState> for ChargeState {
|
||||||
fn from(value: teslatte::vehicles::ChargeState) -> Self {
|
fn from(value: teslatte::vehicles::ChargeState) -> Self {
|
||||||
let charger_connected = value.conn_charge_cable == "<invalid>";
|
let charger_connected = value.conn_charge_cable != "<invalid>";
|
||||||
ChargeState {
|
ChargeState {
|
||||||
battery_level: value.battery_level,
|
battery_level: value.battery_level,
|
||||||
battery_range: value.battery_range,
|
battery_range: value.battery_range,
|
||||||
|
|
Loading…
Reference in a new issue