Reducing the memory required by ATmega168 port.

This commit is contained in:
skarg
2007-10-14 02:01:18 +00:00
parent 637b6900e3
commit 65b7dea8bf
4 changed files with 11 additions and 51 deletions
+1 -2
View File
@@ -71,8 +71,7 @@ int Encode_Property_APDU(
/* handle each object type */
switch(object_type) {
case OBJECT_DEVICE:
if ((object_instance == Device_Object_Instance_Number()) ||
(object_instance == BACNET_MAX_INSTANCE)) {
if (Device_Valid_Object_Instance_Number(object_instance)) {
apdu_len = Device_Encode_Property_APDU(
&apdu[0],
property,