From ae6157c781d5eea85731172d8f0f16c744cc6fdc Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 23 May 2005 01:57:50 +0000 Subject: [PATCH] changed a magic constant to a common define. --- bacnet-stack/bacdcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacnet-stack/bacdcode.c b/bacnet-stack/bacdcode.c index 298cdebb..3e49e952 100644 --- a/bacnet-stack/bacdcode.c +++ b/bacnet-stack/bacdcode.c @@ -1560,7 +1560,7 @@ void testBACDCodeObject(Test * pTest) ct_test(pTest, memcmp(&object_array[0], &encoded_array[0], sizeof(object_array)) == 0); for (type = 0; type < 1024; type++) { - for (instance = 0; instance <= 0x3FFFFF; instance += 1024) { + for (instance = 0; instance <= BACNET_MAX_INSTANCE; instance += 1024) { encode_bacnet_object_id(&encoded_array[0], type, instance); decode_object_id(&encoded_array[0], (int *) &decoded_type, &decoded_instance);