Skip to content

Commit 36ba40d

Browse files
committed
esp_usb_jtag: fixed build with ubuntu 20
1 parent c71668a commit 36ba40d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/esp_usb_jtag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ int esp_usb_jtag::xfer(const uint8_t *tx, uint8_t *rx, const uint16_t length,
615615
if (ret == -7 && is_timeout_fine)
616616
return 0;
617617
snprintf(mess, 128, "xfer: usb bulk write failed with error %d %s %s", ret,
618-
libusb_error_name(ret), libusb_strerror(ret));
618+
libusb_error_name(ret), libusb_strerror(static_cast<libusb_error>(ret)));
619619
printError(mess);
620620
return ret;
621621
}

0 commit comments

Comments
 (0)