From 61336fb557dd420dc2a0a26b15d0eefe64083c00 Mon Sep 17 00:00:00 2001 From: Geert Linders Date: Fri, 17 Jan 2020 20:28:34 +0100 Subject: [PATCH] Reduce Tusage_timeout from 95ms to 30ms as per 136-2016bm. (#33) --- src/bacnet/datalink/mstp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bacnet/datalink/mstp.c b/src/bacnet/datalink/mstp.c index f71b7922..2321ccbf 100644 --- a/src/bacnet/datalink/mstp.c +++ b/src/bacnet/datalink/mstp.c @@ -149,12 +149,12 @@ static inline void printf_master(const char *format, ...) #define Treply_timeout 295 #endif -/* The minimum time without a DataAvailable or ReceiveError event that a */ -/* node must wait for a remote node to begin using a token or replying to */ -/* a Poll For Master frame: 20 milliseconds. (Implementations may use */ -/* larger values for this timeout, not to exceed 100 milliseconds.) */ +/* The time without a DataAvailable or ReceiveError event that a node must */ +/* wait for a remote node to begin using a token or replying to a Poll For */ +/* Master frame: 20 milliseconds. (Implementations may use larger values for */ +/* this timeout, not to exceed 35 milliseconds.) */ #ifndef Tusage_timeout -#define Tusage_timeout 95 +#define Tusage_timeout 30 #endif /* we need to be able to increment without rolling over */