From 22db53dd002a45f069423f2ffc7abcf028f628be Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 23 Jan 2006 13:06:01 +0000 Subject: [PATCH] Made the TSM portion optional via a #define (set in the makefile) so that simple server could be compiled without it. --- bacnet-stack/apdu.c | 1 - bacnet-stack/tsm.h | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bacnet-stack/apdu.c b/bacnet-stack/apdu.c index 4fdbe275..c2d9ec8e 100644 --- a/bacnet-stack/apdu.c +++ b/bacnet-stack/apdu.c @@ -69,7 +69,6 @@ void apdu_set_unrecognized_service_handler_handler( static unconfirmed_function Unconfirmed_Function[MAX_BACNET_UNCONFIRMED_SERVICE] = { - iam_handler, NULL }; diff --git a/bacnet-stack/tsm.h b/bacnet-stack/tsm.h index 59620829..e65fcc25 100644 --- a/bacnet-stack/tsm.h +++ b/bacnet-stack/tsm.h @@ -39,6 +39,9 @@ #include #include "bacdef.h" +/* note: TSM functionality is optional - only needed if we are + doing client requests */ +#if TSM_ENABLED typedef enum { TSM_STATE_IDLE, @@ -109,6 +112,11 @@ bool tsm_get_transaction_pdu( uint16_t *pdu_len); bool tsm_invoke_id_free(uint8_t invokeID); +#else +#define tsm_free_invoke_id(x) (void)x; + + +#endif #ifdef __cplusplus }