Skip to content

Commit

Permalink
code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyGuWBS committed Jun 13, 2024
1 parent 3a620ab commit 1c80f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host/class/cdc/usb_host_cdc_acm/cdc_acm_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ esp_err_t cdc_acm_host_data_tx_blocking(cdc_acm_dev_hdl_t cdc_hdl, const uint8_t
uint32_t start = xTaskGetTickCount();
uint32_t timeout_ticks = pdMS_TO_TICKS(timeout_ms);

while(cdc_dev->data.out_xfer->actual_num_bytes < data_len) {
while (cdc_dev->data.out_xfer->actual_num_bytes < data_len) {
int32_t timeout = timeout_ticks - (xTaskGetTickCount() - start);
if (timeout > 0) {
taken = xSemaphoreTake((SemaphoreHandle_t)cdc_dev->data.out_xfer->context, timeout);
Expand Down

0 comments on commit 1c80f8d

Please sign in to comment.