Skip to content

Commit ce71bff

Browse files
committed
fix: Fix the ESP USB CDC ACM port read return value
This makes sure that we correctly indicate timeout instead of unrecoverable failure for when not all data requested is read and fixes an issue with initial SYNC packet connection, where there would be no retries. Closes #117
1 parent 0a44b73 commit ce71bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

port/esp32_usb_cdc_acm_port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ esp_loader_error_t loader_port_read(uint8_t *data, const uint16_t size, const ui
156156
#endif
157157
return ESP_LOADER_SUCCESS;
158158
} else {
159-
return ESP_LOADER_ERROR_FAIL;
159+
return ESP_LOADER_ERROR_TIMEOUT;
160160
}
161161
}
162162

0 commit comments

Comments
 (0)