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); } }