Skip to content

Commit

Permalink
Update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 10, 2024
1 parent 03fcdfe commit 9a3d1d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/asic/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ esp_err_t SERIAL_send(uint8_t *data, int len, bool debug, bool wait)
}

if (wait) {
if (uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS) != ESP_OK) {
return ESP_FAIL;
}
// When using wait we could end up returning a ESP_ERR_TIMEOUT error as well.
return uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS);
}

return ESP_OK;
Expand Down

0 comments on commit 9a3d1d3

Please sign in to comment.