mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
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:
committed by
wanckl
parent
49aa2d5bd7
commit
9be0fe1509
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user