Corrected rs-485 silence time function calls to match recent changes in API.
This commit is contained in:
@@ -415,7 +415,7 @@ void RS485_Send_Frame(
|
|||||||
turnaround_time = 2;
|
turnaround_time = 2;
|
||||||
else
|
else
|
||||||
turnaround_time = 2;
|
turnaround_time = 2;
|
||||||
while (mstp_port->SilenceTimer() < turnaround_time) {
|
while (mstp_port->SilenceTimer(NULL) < turnaround_time) {
|
||||||
/* do nothing - wait for timer to increment */
|
/* do nothing - wait for timer to increment */
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -423,7 +423,7 @@ void RS485_Send_Frame(
|
|||||||
|
|
||||||
/* per MSTP spec, reset SilenceTimer after each byte is sent */
|
/* per MSTP spec, reset SilenceTimer after each byte is sent */
|
||||||
if (mstp_port) {
|
if (mstp_port) {
|
||||||
mstp_port->SilenceTimerReset();
|
mstp_port->SilenceTimerReset(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user