Skip to content

Commit

Permalink
Serial fix for Bitaxe 205
Browse files Browse the repository at this point in the history
  • Loading branch information
eandersson committed Nov 23, 2024
1 parent 29a543d commit 0b2f36f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/asic/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ void SERIAL_set_baud(int baud)
{
ESP_LOGI(TAG, "Changing UART baud to %i", baud);

// Make sure that we are done writing before setting a new baudrate.
uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS);

uart_set_baudrate(UART_NUM_1, baud);

// Make sure that we are done writing before moving on after setting a new baudrate.
uart_wait_tx_done(UART_NUM_1, 1000 / portTICK_PERIOD_MS);
}

int SERIAL_send(uint8_t *data, int len, bool debug)
Expand Down

0 comments on commit 0b2f36f

Please sign in to comment.