Add new status codes for charger op mode

This commit is contained in:
Maxime Augier 2024-08-21 21:51:44 +02:00
parent d4a6816532
commit 36c0e28f02

View File

@ -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)),
}
}