Skip to content

Commit

Permalink
SiliconLabsGH-23: return SL_STATUS_NOT_AVAILABLE to avoid breaking zigpc
Browse files Browse the repository at this point in the history
Bug-SiliconLabs: UIC-3201
Signed-off-by: Thomas du Boisrouvray <thdubois@silabs.com>
Forwared-SiliconLabs: thdubois/UIC-3072/c4/develop
(cherry picked from commit 5a445787e735313f67e7755a25950d08fe090096)
  • Loading branch information
Thomasdjb committed Jan 19, 2024
1 parent 201de4d commit 83e60ee
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -4245,7 +4245,7 @@ sl_status_t zigpc_command_mapper_door_lock_get_all_pin_codes_handler(
const dotdot_endpoint_id_t endpoint,
uic_mqtt_dotdot_callback_call_type_t callback_type
) {
sl_status_t status = SL_STATUS_OK;
sl_status_t status = SL_STATUS_NOT_AVAILABLE;

if (callback_type == UIC_MQTT_DOTDOT_CALLBACK_TYPE_SUPPORT_CHECK) {
status = zigpc_command_mapper_cluster_support_check(unid, endpoint, ZIGPC_ZCL_CLUSTER_DOOR_LOCK);
Expand All @@ -4271,7 +4271,7 @@ sl_status_t zigpc_command_mapper_door_lock_get_all_pin_codes_handler(
}

// Always return SL_STATUS_OK if being called normally.
return SL_STATUS_OK;
return status;
}

/**
Expand Down

0 comments on commit 83e60ee

Please sign in to comment.