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:
parent
6fb340d654
commit
dacc4ff124
@ -1267,9 +1267,9 @@ static inline int ieee802154_radio_cca(ieee802154_dev_t *dev)
|
|||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
while (ieee802154_radio_confirm_cca(dev) == -EAGAIN) {}
|
while ((res = ieee802154_radio_confirm_cca(dev)) == -EAGAIN) {}
|
||||||
|
|
||||||
return 0;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user