Adding unit tests to Load Control object to verify state machine.

This commit is contained in:
skarg
2007-02-26 22:02:19 +00:00
parent 2661171f42
commit 9afdc3fffa
5 changed files with 102 additions and 17 deletions
+6
View File
@@ -130,6 +130,12 @@ uint8_t Send_Write_Property_Request(uint32_t device_id,
int apdu_len = 0, len = 0;
while (object_value) {
#if PRINT_ENABLED_DEBUG
fprintf(stderr, "WriteProperty service: "
"%s tag=%d\n",
(object_value->context_specific?"context":"application"),
(int)(object_value->context_specific?object_value->context_tag:object_value->tag) );
#endif
len = bacapp_encode_data(&application_data[apdu_len],
object_value);
if ((len + apdu_len) < MAX_APDU) {