[riot-notifications] [RIOT-OS/RIOT] sys/net/iee802154/radio: add IEEE802154_RADIO_INDICATION_CRC_ERROR (#15397)

José Alamos notifications at github.com
Wed Jan 13 17:29:03 CET 2021


@jia200x commented on this pull request.



> @@ -102,6 +102,23 @@ static xtimer_t timer_ack = {
     .callback = _timer_ack_handler,
 };
 
+void _crc_error_handler(event_t *event)
+{
+    (void) event;
+    puts("Packet with invalid CRC received");
+    ieee802154_dev_t* dev = ieee802154_hal_test_get_dev(RADIO_DEFAULT_ID);
+    /* switch back to RX_ON state */
+    ieee802154_radio_request_set_trx_state(dev, IEEE802154_TRX_STATE_TX_ON);

It should be enough to call here set_trx_state(RX_ON) directly

-- 
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/15397#pullrequestreview-567401995
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210113/9585f134/attachment.htm>


More information about the notifications mailing list