Skip to content

Commit ae3ac0e

Browse files
committed
Merge branch 'ci/fix_uart_read_write_priorities' into 'master'
driver test: Ensure uart write task can't overflow buffer of read task Closes IDFCI-68 See merge request espressif/esp-idf!9527
2 parents f5b1f43 + 289ad82 commit ae3ac0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/driver/test/test_uart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ TEST_CASE("uart read write test", "[uart]")
255255
vTaskDelay(1 / portTICK_PERIOD_MS); // make sure last byte has flushed from TX FIFO
256256
TEST_ESP_OK(uart_flush_input(uart_num));
257257

258-
xTaskCreate(uart_write_task, "uart_write_task", 2048 * 4, (void *)uart_num, 5, NULL);
258+
xTaskCreate(uart_write_task, "uart_write_task", 2048 * 4, (void *)uart_num, UNITY_FREERTOS_PRIORITY - 1, NULL);
259259
int len_tmp = 0;
260260
int rd_len = 1024;
261261
for (int i = 0; i < 1024; i++) {

0 commit comments

Comments
 (0)