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 and thinkyhead committed May 17, 2023
1 parent b6c27fb commit a2040ba
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 a2040ba

Please sign in to comment.