Corrected reading of ALL to not read with array index 0.

This commit is contained in:
skarg
2010-07-16 16:10:28 +00:00
parent 6fd0d9e13a
commit 6450255be6
+1 -5
View File
@@ -833,8 +833,7 @@ void StartNextObject( BACNET_READ_ACCESS_DATA *rpm_object, BACNET_OBJECT_ID *pNe
rpm_object->listOfProperties = rpm_property; rpm_object->listOfProperties = rpm_property;
assert(rpm_property); assert(rpm_property);
rpm_property->propertyIdentifier = PROP_ALL; rpm_property->propertyIdentifier = PROP_ALL;
/* Start with a count of the array size */ rpm_property->propertyArrayIndex = BACNET_ARRAY_ALL;
rpm_property->propertyArrayIndex = 0;
} }
/** Main function of the bacepics program. /** Main function of the bacepics program.
@@ -961,9 +960,6 @@ int main(
/* Update times; aids single-step debugging */ /* Update times; aids single-step debugging */
last_seconds = current_seconds; last_seconds = current_seconds;
StartNextObject( rpm_object, &myObject ); StartNextObject( rpm_object, &myObject );
/* Override the default and set the optional array index to "None" */
if (myState == GET_ALL_REQUEST)
rpm_object->listOfProperties->propertyArrayIndex = -1;
invoke_id = invoke_id =
Send_Read_Property_Multiple_Request(buffer, MAX_PDU, Send_Read_Property_Multiple_Request(buffer, MAX_PDU,
Target_Device_Object_Instance, rpm_object); Target_Device_Object_Instance, rpm_object);