Corrected rs-485 silence time function calls to match recent changes in API.

This commit is contained in:
skarg
2012-09-27 19:53:12 +00:00
parent c28f55d3df
commit 969bd471c0
+2 -2
View File
@@ -415,7 +415,7 @@ void RS485_Send_Frame(
turnaround_time = 2;
else
turnaround_time = 2;
while (mstp_port->SilenceTimer() < turnaround_time) {
while (mstp_port->SilenceTimer(NULL) < turnaround_time) {
/* 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 */
if (mstp_port) {
mstp_port->SilenceTimerReset();
mstp_port->SilenceTimerReset(NULL);
}
return;