1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

pkg/openthread: change error code

Using OT_ERROR_FAILED let to unreachable code and following that a panic.
This commit is contained in:
morigawa 2025-10-15 12:45:34 +02:00
parent 0f2fbe1b57
commit 073d16508d

View File

@ -189,7 +189,7 @@ void send_pkt(otInstance *aInstance, netdev_t *dev, netdev_event_t event)
} else if (res == -EHOSTUNREACH) {
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_NO_ACK);
} else {
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_FAILED);
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_ABORT);
}
}
#else