Check return value for valid COV encoding.
This commit is contained in:
@@ -718,11 +718,13 @@ bool handler_cov_fsm(
|
|||||||
/* configure the linked list for the two properties */
|
/* configure the linked list for the two properties */
|
||||||
value_list[0].next = &value_list[1];
|
value_list[0].next = &value_list[1];
|
||||||
value_list[1].next = NULL;
|
value_list[1].next = NULL;
|
||||||
(void) Device_Encode_Value_List(object_type,
|
status = Device_Encode_Value_List(object_type,
|
||||||
object_instance, &value_list[0]);
|
object_instance, &value_list[0]);
|
||||||
status =
|
if (status) {
|
||||||
cov_send_request(&COV_Subscriptions[index],
|
status =
|
||||||
&value_list[0]);
|
cov_send_request(&COV_Subscriptions[index],
|
||||||
|
&value_list[0]);
|
||||||
|
}
|
||||||
if (status) {
|
if (status) {
|
||||||
COV_Subscriptions[index].flag.send_requested = false;
|
COV_Subscriptions[index].flag.send_requested = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user