1
0
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:
benpicco 2021-07-07 15:28:26 +02:00 committed by GitHub
commit 3d42fe98aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}