From 70381c8b84a7e6f76e39803b456e5d0df162e2f2 Mon Sep 17 00:00:00 2001 From: skarg Date: Mon, 14 Jun 2010 15:56:29 +0000 Subject: [PATCH] Updated BACnet protocol revision constants. --- bacnet-stack/ports/at91sam7s/device.c | 4 ++-- bacnet-stack/ports/atmega168/device.c | 6 ++++-- bacnet-stack/ports/atmega8/device.c | 6 ++++-- bacnet-stack/ports/bdk-atxx4-mstp/device.c | 6 ++++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/bacnet-stack/ports/at91sam7s/device.c b/bacnet-stack/ports/at91sam7s/device.c index b384af8d..b85dd6b2 100644 --- a/bacnet-stack/ports/at91sam7s/device.c +++ b/bacnet-stack/ports/at91sam7s/device.c @@ -536,13 +536,13 @@ uint16_t Device_Vendor_Identifier( uint8_t Device_Protocol_Version( void) { - return 1; + return BACNET_PROTOCOL_VERSION; } uint8_t Device_Protocol_Revision( void) { - return 5; + return BACNET_PROTOCOL_REVISION; } BACNET_SEGMENTATION Device_Segmentation_Supported( diff --git a/bacnet-stack/ports/atmega168/device.c b/bacnet-stack/ports/atmega168/device.c index c8cb3c3f..96855922 100644 --- a/bacnet-stack/ports/atmega168/device.c +++ b/bacnet-stack/ports/atmega168/device.c @@ -224,10 +224,12 @@ int Device_Encode_Property_APDU( encode_application_character_string(&apdu[0], &char_string); break; case PROP_PROTOCOL_VERSION: - apdu_len = encode_application_unsigned(&apdu[0], 1); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_VERSION); break; case PROP_PROTOCOL_REVISION: - apdu_len = encode_application_unsigned(&apdu[0], 5); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_REVISION); break; case PROP_PROTOCOL_SERVICES_SUPPORTED: /* Note: list of services that are executed, not initiated. */ diff --git a/bacnet-stack/ports/atmega8/device.c b/bacnet-stack/ports/atmega8/device.c index d2c5819d..982482e8 100644 --- a/bacnet-stack/ports/atmega8/device.c +++ b/bacnet-stack/ports/atmega8/device.c @@ -230,10 +230,12 @@ int Device_Encode_Property_APDU( encode_application_character_string(&apdu[0], &char_string); break; case PROP_PROTOCOL_VERSION: - apdu_len = encode_application_unsigned(&apdu[0], 1); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_VERSION); break; case PROP_PROTOCOL_REVISION: - apdu_len = encode_application_unsigned(&apdu[0], 5); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_REVISION); break; case PROP_PROTOCOL_SERVICES_SUPPORTED: /* Note: list of services that are executed, not initiated. */ diff --git a/bacnet-stack/ports/bdk-atxx4-mstp/device.c b/bacnet-stack/ports/bdk-atxx4-mstp/device.c index 354002e5..755224fd 100644 --- a/bacnet-stack/ports/bdk-atxx4-mstp/device.c +++ b/bacnet-stack/ports/bdk-atxx4-mstp/device.c @@ -642,10 +642,12 @@ int Device_Read_Property_Local( encode_application_character_string(&apdu[0], &char_string); break; case PROP_PROTOCOL_VERSION: - apdu_len = encode_application_unsigned(&apdu[0], 1); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_VERSION); break; case PROP_PROTOCOL_REVISION: - apdu_len = encode_application_unsigned(&apdu[0], 5); + apdu_len = encode_application_unsigned(&apdu[0], + BACNET_PROTOCOL_REVISION); break; case PROP_PROTOCOL_SERVICES_SUPPORTED: /* Note: list of services that are executed, not initiated. */