Added MS/TP statistics counters for BadCRC and Poll-For-Master. (#1081)

This commit is contained in:
Steve Karg
2025-09-11 10:53:16 -05:00
committed by GitHub
parent 7b727279bc
commit 0da61e52bb
7 changed files with 41 additions and 4 deletions
+5
View File
@@ -128,6 +128,11 @@ static void test_MSTP_Datalink(void)
zassert_equal(
test_stats.receive_pdu_counter,
MSTP_User.Statistics.receive_pdu_counter, NULL);
zassert_equal(
test_stats.bad_crc_counter, MSTP_User.Statistics.bad_crc_counter, NULL);
zassert_equal(
test_stats.poll_for_master_counter,
MSTP_User.Statistics.poll_for_master_counter, NULL);
dlmstp_reset_statistics();
dlmstp_set_frame_rx_complete_callback(NULL);
dlmstp_set_invalid_frame_rx_complete_callback(NULL);