Skip to content

Commit

Permalink
🐛 Fix STM32 USB disconnect behavior (MarlinFirmware#25762)
Browse files Browse the repository at this point in the history
  • Loading branch information
smiksky authored May 1, 2023
1 parent 006a9e5 commit 4bed8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/HAL/STM32/usb_host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static void USBH_UserProcess(USBH_HandleTypeDef *phost, uint8_t id) {
break;
case HOST_USER_DISCONNECTION:
//SERIAL_ECHOLNPGM("APPLICATION_DISCONNECT");
//usb.setUsbTaskState(USB_STATE_RUNNING);
usb.setUsbTaskState(USB_STATE_INIT);
break;
case HOST_USER_CLASS_ACTIVE:
//SERIAL_ECHOLNPGM("APPLICATION_READY");
Expand Down

0 comments on commit 4bed8a8

Please sign in to comment.