while (1) { size_t data_len; if (uart_get_buffered_data_len(uart_num, &data_len) == ESP_OK) { uint8_t buf; int ret = uart_read_bytes(uart_num, &buf, 1, 0); if (ret != 1) ESP32_LOGW("data_len %u but read_bytes %i?", data_len, ret); } } Proposed fix I will...