Skip to content

Commit 7efd2ea

Browse files
smikskyEvilGremlin
authored andcommitted
🐛 Fix STM32 USB disconnect behavior (MarlinFirmware#25762)
1 parent 826b0b2 commit 7efd2ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Marlin/src/HAL/STM32/usb_host.cpp

Lines changed: 1 addition & 1 deletion
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)