[riot-notifications] [RIOT-OS/RIOT] ieee802154/submac: fix initialization code (#16533)

José Alamos notifications at github.com
Mon Jul 12 16:42:55 CEST 2021


@jia200x commented on this pull request.



>  
     ieee802154_radio_config_phy(dev, &conf);
     assert(ieee802154_radio_set_cca_threshold(dev,
                                               CONFIG_IEEE802154_CCA_THRESH_DEFAULT) >= 0);
 
-    ieee802154_radio_request_set_trx_state(dev, IEEE802154_TRX_STATE_RX_ON);
+    _req_set_trx_state_wait_busy(dev, IEEE802154_TRX_STATE_RX_ON);
+    while(ieee802154_radio_confirm_set_trx_state(dev) == -EAGAIN) {};

done!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16533#discussion_r667993830
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210712/98f3e249/attachment.htm>


More information about the notifications mailing list