mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
Merge pull request #16618 from benpicco/drivers/dose-EBUSY
drivers/dose: return -EBUSY if medium is busy
This commit is contained in:
commit
3d42fe98aa
@ -449,7 +449,7 @@ collision:
|
||||
DEBUG("dose _send(): collision!\n");
|
||||
if (--retries < 0) {
|
||||
ctx->netdev.event_callback((netdev_t *) ctx, NETDEV_EVENT_TX_MEDIUM_BUSY);
|
||||
return 0;
|
||||
return -EBUSY;
|
||||
}
|
||||
goto send;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user