1
0
mirror of https://github.com/stargieg/bacnet-stack synced 2025-10-26 23:35:52 +08:00

Merge pull request #10 from raghavan97/bug-turnaround-computation

Fix computation of turnaround time
This commit is contained in:
Patrick Grimm 2018-09-12 14:28:46 +02:00 committed by GitHub
commit 187d5feb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,7 +391,7 @@ void RS485_Send_Frame(
uint8_t * buffer, /* frame to send (up to 501 bytes of data) */
uint16_t nbytes)
{ /* number of bytes of data (up to 501) */
uint32_t turnaround_time = Tturnaround * 1000;
uint32_t turnaround_time = Tturnaround * 1000000; /* microseconds */
uint32_t baud;
ssize_t written = 0;
int greska;