chor(twai): improve error logging in _node_queue_tx function

Enhanced error message for unmatched dlc and buffer_len.

Merges https://github.com/espressif/esp-idf/pull/17888
This commit is contained in:
diplfranzhoepfinger
2025-12-15 15:48:33 +08:00
committed by wanckl
parent 49aa2d5bd7
commit 9be0fe1509
6 changed files with 34 additions and 13 deletions
@@ -225,7 +225,11 @@ TEST_CASE("twai transmit stop resume (loopback)", "[twai]")
TEST_ESP_OK(twai_node_enable(node_hdl));
//waiting pkg receive finish
TEST_ESP_OK(twai_node_transmit_wait_all_done(node_hdl, -1));
twai_node_status_t status = {};
while (status.tx_queue_remaining < TEST_TWAI_QUEUE_DEPTH) {
TEST_ESP_OK(twai_node_get_info(node_hdl, &status, NULL));
printf("%ld\n", status.tx_queue_remaining);
}
free(tx_msgs);
// check if pkg receive correct