diff --git a/bacnet-stack/Makefile b/bacnet-stack/Makefile index 33bae380..0214289c 100644 --- a/bacnet-stack/Makefile +++ b/bacnet-stack/Makefile @@ -3,7 +3,9 @@ CC = gcc BASEDIR = . #CFLAGS = -Wall -I. # -g for debugging with gdb -#CFLAGS = -Wall -I. -g +#CFLAGS = -Wall -I. -O2 -g +# Note: you can strip out symbols using the strip command +# to get an idea of how big the compile really is. CFLAGS = -Wall -I. -g SRCS = ports/linux/main.c \ diff --git a/bacnet-stack/wp.c b/bacnet-stack/wp.c index d3b1d01a..f6e58a24 100644 --- a/bacnet-stack/wp.c +++ b/bacnet-stack/wp.c @@ -138,6 +138,9 @@ int wp_decode_service_request( else return -1; // Tag 4: optional Priority + // FIXME: if the property value is not easily sized here, + // then just have the application decode the property value + // and the priority if (len < apdu_len) { len += decode_tag_number_and_value(&apdu[len],&tag_number,