From 9cdc90c25dcfe66c53b8141b1f4a83a430c598f3 Mon Sep 17 00:00:00 2001 From: skarg Date: Sun, 21 May 2006 12:15:19 +0000 Subject: [PATCH] Corrected compile errors found during unit test. --- bacnet-stack/demo/object/bi.c | 6 +++--- bacnet-stack/demo/object/bi.mak | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bacnet-stack/demo/object/bi.c b/bacnet-stack/demo/object/bi.c index 657a5cf3..8e7211bc 100644 --- a/bacnet-stack/demo/object/bi.c +++ b/bacnet-stack/demo/object/bi.c @@ -198,8 +198,8 @@ void testBinaryInput(Test * pTest) int len = 0; uint32_t len_value = 0; uint8_t tag_number = 0; - BACNET_OBJECT_TYPE decoded_type = OBJECT_BINARY_OUTPUT - uint32_t decoded_instance = 0; + BACNET_OBJECT_TYPE decoded_type = OBJECT_BINARY_OUTPUT; + uint32_t decoded_instance = 0; uint32_t instance = 123; BACNET_ERROR_CLASS error_class; BACNET_ERROR_CODE error_code; @@ -215,7 +215,7 @@ void testBinaryInput(Test * pTest) ct_test(pTest, tag_number == BACNET_APPLICATION_TAG_OBJECT_ID); len = decode_object_id(&apdu[len], (int *) &decoded_type, &decoded_instance); - ct_test(pTest, decoded_type == OBJECT_ANALOG_INPUT); + ct_test(pTest, decoded_type == OBJECT_BINARY_INPUT); ct_test(pTest, decoded_instance == instance); return; diff --git a/bacnet-stack/demo/object/bi.mak b/bacnet-stack/demo/object/bi.mak index a4f6bd80..7bae3cbc 100644 --- a/bacnet-stack/demo/object/bi.mak +++ b/bacnet-stack/demo/object/bi.mak @@ -10,7 +10,7 @@ CFLAGS = -Wall -I. -Itest -DTEST -DTEST_BINARY_INPUT -g SRCS = bacdcode.c \ bacstr.c \ bigend.c \ - demo/object/ai.c \ + demo/object/bi.c \ test/ctest.c OBJS = ${SRCS:.c=.o}