Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/stm_pro_mode/stm_pro_mode.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ esp_err_t readPage(const char *address, const char *data)
if (length > 0)
{
uint8_t uart_data[length];
const int rxBytes = uart_read_bytes(UART_NUM_1, uart_data, length, 1000 / portTICK_RATE_MS);
const int rxBytes = uart_read_bytes(UART_CONTROLLER, uart_data, length, 1000 / portTICK_RATE_MS);

if (rxBytes > 0 && uart_data[0] == 0x79)
{
Expand All @@ -358,4 +358,4 @@ esp_err_t readPage(const char *address, const char *data)
}

return ESP_OK;
}
}