From 66bf55a302cfc56d375284f27e16991b94998c95 Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 14 Dec 2016 05:03:30 +0000 Subject: [PATCH] Adjusted device object local variables in PIC demo to build successfully within given stack frame. --- bacnet-stack/ports/pic18f6720/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacnet-stack/ports/pic18f6720/device.c b/bacnet-stack/ports/pic18f6720/device.c index 89f507b6..a9f6aa1f 100644 --- a/bacnet-stack/ports/pic18f6720/device.c +++ b/bacnet-stack/ports/pic18f6720/device.c @@ -268,10 +268,11 @@ bool Device_Object_List_Identifier( int Device_Read_Property_Local( BACNET_READ_PROPERTY_DATA * rpdata) { + static char string_buffer[28]; + static BACNET_CHARACTER_STRING char_string; int apdu_len = 0; /* return value */ int len = 0; /* apdu len intermediate value */ BACNET_BIT_STRING bit_string; - BACNET_CHARACTER_STRING char_string; uint32_t i = 0; int object_type = 0; uint32_t instance = 0; @@ -279,7 +280,6 @@ int Device_Read_Property_Local( BACNET_TIME local_time; BACNET_DATE local_date; uint8_t year = 0; - char string_buffer[28]; int16_t TimeZone = 0; uint8_t *apdu = NULL;