Fixed MS/TP that was not working in ports/win32 (#694)

This commit is contained in:
Nandkishor Biradar
2024-07-19 18:23:16 +05:30
committed by GitHub
parent e984a19885
commit fd2f33b522
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1672,7 +1672,7 @@ void MSTP_Init(struct mstp_port_struct_t *mstp_port)
if ((mstp_port->Tframe_abort < 6) || (mstp_port->Tframe_abort > 100)) {
mstp_port->Tframe_abort = DEFAULT_Tframe_abort;
}
if (mstp_port->Treply_delay > 250) {
if ((mstp_port->Treply_delay == 0) || mstp_port->Treply_delay > 250) {
mstp_port->Treply_delay = DEFAULT_Treply_delay;
}
if ((mstp_port->Treply_timeout < 20) ||