From 72abef8e1db360b82167f643a72b4a973e686500 Mon Sep 17 00:00:00 2001 From: skarg Date: Thu, 3 Jan 2008 18:49:38 +0000 Subject: [PATCH] Corrected atmega port MS/TP code where APDU size > 255 caused APDU layer to not process packets. --- bacnet-stack/ports/atmega168/av.c | 1 - bacnet-stack/ports/atmega168/dlmstp.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bacnet-stack/ports/atmega168/av.c b/bacnet-stack/ports/atmega168/av.c index 8d41918c..2551e567 100644 --- a/bacnet-stack/ports/atmega168/av.c +++ b/bacnet-stack/ports/atmega168/av.c @@ -165,7 +165,6 @@ bool Analog_Value_Write_Property( { bool status = false; /* return value */ unsigned int object_index = 0; - unsigned int priority = 0; int len = 0; BACNET_APPLICATION_DATA_VALUE value; diff --git a/bacnet-stack/ports/atmega168/dlmstp.c b/bacnet-stack/ports/atmega168/dlmstp.c index c67e329e..c59560d6 100644 --- a/bacnet-stack/ports/atmega168/dlmstp.c +++ b/bacnet-stack/ports/atmega168/dlmstp.c @@ -49,7 +49,6 @@ /* This file has been customized for use with small microprocessors */ /* Assumptions: - APDU size of 50 or 128 (255 or less) Only one MS/TP datalink layer */ #include "hardware.h" @@ -147,7 +146,7 @@ static uint8_t FrameType; and microcontroller architectures have limits as to places to hold contiguous memory. */ static uint8_t *InputBuffer; -static uint8_t InputBufferSize; +static uint16_t InputBufferSize; /* Used to store the Source Address of a received frame. */ static uint8_t SourceAddress; /* "This Station," the MAC address of this node. TS is generally read from a */