Update esp32_usb_serial.cpp

This commit is contained in:
Luc 2024-11-04 22:11:02 +01:00
parent b6a7add333
commit ff3dff0ad6

View File

@ -151,7 +151,7 @@ esp_err_t usb_serial_deinit() {
// this one failed with ESP_ERR_INVALID_STATE if USB is connected
if (ret != ESP_OK) {
ESP_LOGE("USB_SERIAL","Failed to unsinstall usb host %s",
esp_err_to_name(usb_host_uninstall()));
esp_err_to_name(ret));
}
// Deinitialize the internal USB PHY
ret = usb_del_phy(phy_hdl);