Skip to content

Commit bc3cb4b

Browse files
silabs-borislrzr
authored andcommitted
UIC-3222: Fix error message on network status wake up
1 parent a09f5b3 commit bc3cb4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

applications/zpc/components/zwave_command_classes/src/zwave_command_class_user_credential.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,12 @@ void zwave_network_status_changed(attribute_store_node_t node,
22922292
auto node_id = node_id_node.reported<zwave_node_id_t>();
22932293

22942294
// If we are updating the zpc node or if we trying to delete the attribute we don't want to do anything
2295-
if (change == ATTRIBUTE_DELETED || get_zpc_node_id_node() == node_id_node) {
2295+
if (change != ATTRIBUTE_UPDATED || get_zpc_node_id_node() == node_id_node) {
2296+
return;
2297+
}
2298+
2299+
// In case we are not ready yet and don't have a reported value
2300+
if (!network_status_node.reported_exists()) {
22962301
return;
22972302
}
22982303

0 commit comments

Comments
 (0)