1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

ieee802154/radio: fix blocking cca function

This commit is contained in:
Jose Alamos 2022-08-17 13:35:06 +02:00
parent 6fb340d654
commit dacc4ff124
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -1267,9 +1267,9 @@ static inline int ieee802154_radio_cca(ieee802154_dev_t *dev)
if (res < 0) {
return res;
}
while (ieee802154_radio_confirm_cca(dev) == -EAGAIN) {}
while ((res = ieee802154_radio_confirm_cca(dev)) == -EAGAIN) {}
return 0;
return res;
}
/**