From 1210ca620e3821c245c7fae89c2f04a7f72df633 Mon Sep 17 00:00:00 2001 From: skarg Date: Tue, 22 Oct 2013 19:24:06 +0000 Subject: [PATCH] Fixed timeout function call. Thanks, Daniel! --- bacnet-stack/src/tsm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacnet-stack/src/tsm.c b/bacnet-stack/src/tsm.c index 88769eac..264257c8 100644 --- a/bacnet-stack/src/tsm.c +++ b/bacnet-stack/src/tsm.c @@ -284,8 +284,8 @@ void tsm_timer_milliseconds( and this indicates a failed message: IDLE and a valid invoke id */ TSM_List[i].state = TSM_STATE_IDLE; - if(TSM_List[i].InvokeID != 0) { - if(!Timeout_Function) { + if (TSM_List[i].InvokeID != 0) { + if (Timeout_Function) { Timeout_Function(TSM_List[i].InvokeID); } }