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 -1
View File
@@ -85,7 +85,7 @@ void handler_read_property(uint8_t * service_request,
switch (data.object_type) {
case OBJECT_DEVICE:
/* FIXME: probably need a length limitation sent with encode */
if (data.object_instance == Device_Object_Instance_Number()) {
if (Device_Valid_Object_Instance_Number(data.object_instance)) {
len = Device_Encode_Property_APDU(&Temp_Buf[0],
data.object_property,
data.array_index, &error_class, &error_code);