We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f427b80 commit 2d52d2cCopy full SHA for 2d52d2c
subsys/net/openthread/rpc/client/ot_rpc_if.c
@@ -172,7 +172,9 @@ static int ot_rpc_l2_enable(struct net_if *iface, bool state)
172
net_if_set_link_addr(iface, (uint8_t *)otLinkGetExtendedAddress(NULL)->m8,
173
OT_EXT_ADDRESS_SIZE, NET_LINK_IEEE802154);
174
update_netif_addrs(iface);
175
- otSetStateChangedCallback(NULL, ot_state_changed_handler, iface);
+ if (otSetStateChangedCallback(NULL, ot_state_changed_handler, iface)) {
176
+ NET_ERR("otSetStateChangedCallback failed");
177
+ }
178
}
179
180
return 0;
0 commit comments