Add new status codes for charger op mode
This commit is contained in:
parent
d4a6816532
commit
36c0e28f02
@ -145,9 +145,11 @@ fn handle_event(
|
||||
ChargerOpMode::Finished => send("Charging finished"),
|
||||
ChargerOpMode::Error => send("Charger error"),
|
||||
ChargerOpMode::Ready => send("Charger ready"),
|
||||
ChargerOpMode::AwaitingAuthentication => send("Charger awaiting authentication"),
|
||||
ChargerOpMode::Deauthenticating => send("Charger deauthenticating"),
|
||||
}?;
|
||||
ctx.set_status(mode)
|
||||
},
|
||||
}
|
||||
other => Ok(info!("{}: {:?}", evt.charger, other)),
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user