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
+3
View File
@@ -535,6 +535,9 @@ static void *dlmstp_thread(void *pArg)
}
if (MSTP_Port.ReceivedValidFrame) {
DLMSTP_Statistics.receive_valid_frame_counter++;
if (MSTP_Port.FrameType == FRAME_TYPE_POLL_FOR_MASTER) {
DLMSTP_Statistics.poll_for_master_counter++;
}
if (Valid_Frame_Rx_Callback) {
Valid_Frame_Rx_Callback(
MSTP_Port.SourceAddress, MSTP_Port.DestinationAddress,