mirror of
https://github.com/stakwork/sphinx-key.git
synced 2025-12-17 07:14:23 +01:00
sphinx-key: restart the esp upon disconnect
This commit is contained in:
@@ -155,8 +155,8 @@ pub fn make_event_loop(
|
|||||||
current_status = update_led(current_status, Status::Connected, &led_tx);
|
current_status = update_led(current_status, Status::Connected, &led_tx);
|
||||||
}
|
}
|
||||||
Event::Disconnected => {
|
Event::Disconnected => {
|
||||||
current_status = update_led(current_status, Status::ConnectingToMqtt, &led_tx);
|
|
||||||
log::info!("GOT A Event::Disconnected msg!");
|
log::info!("GOT A Event::Disconnected msg!");
|
||||||
|
unsafe { esp_idf_svc::sys::esp_restart() };
|
||||||
}
|
}
|
||||||
Event::VlsMessage(msg_bytes) => {
|
Event::VlsMessage(msg_bytes) => {
|
||||||
current_status = update_led(current_status, Status::Signing, &led_tx);
|
current_status = update_led(current_status, Status::Signing, &led_tx);
|
||||||
|
|||||||
Reference in New Issue
Block a user