Skip to content

Commit ff3dff0

Browse files
committed
Update esp32_usb_serial.cpp
1 parent b6a7add commit ff3dff0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/esp32-usb-serial-1.0.1/src/esp32_usb_serial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ esp_err_t usb_serial_deinit() {
151151
// this one failed with ESP_ERR_INVALID_STATE if USB is connected
152152
if (ret != ESP_OK) {
153153
ESP_LOGE("USB_SERIAL","Failed to unsinstall usb host %s",
154-
esp_err_to_name(usb_host_uninstall()));
154+
esp_err_to_name(ret));
155155
}
156156
// Deinitialize the internal USB PHY
157157
ret = usb_del_phy(phy_hdl);

0 commit comments

Comments
 (0)