diff --git a/src/usb.rs b/src/usb.rs index 6234987..33771b6 100644 --- a/src/usb.rs +++ b/src/usb.rs @@ -159,6 +159,8 @@ pub async fn usb_task( buffer = String::from(&buffer.as_str()[line_end + 1..]); } defmt::info!("USB disconnected"); + // USB connection is broken, so better stop the rotor. + cmd_sender.send(Gs232Cmd::Stop); } };