Skip to content

Commit 4bed8a8

Browse files
authored
🐛 Fix STM32 USB disconnect behavior (#25762)
1 parent 006a9e5 commit 4bed8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/HAL/STM32/usb_host.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8_t id) {
4444
break;
4545
case HOST_USER_DISCONNECTION:
4646
//SERIAL_ECHOLNPGM("APPLICATION_DISCONNECT");
47-
//usb.setUsbTaskState(USB_STATE_RUNNING);
47+
usb.setUsbTaskState(USB_STATE_INIT);
4848
break;
4949
case HOST_USER_CLASS_ACTIVE:
5050
//SERIAL_ECHOLNPGM("APPLICATION_READY");

0 commit comments

Comments
 (0)