Skip to content

Commit ebb4881

Browse files
committed
pkg/openthread: change error code
Using OT_ERROR_FAILED let to unreachable code and following that a panic.
1 parent 603c2f9 commit ebb4881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openthread/contrib/platform_radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void send_pkt(otInstance *aInstance, netdev_t *dev, netdev_event_t event)
189189
} else if (res == -EHOSTUNREACH) {
190190
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_NO_ACK);
191191
} else {
192-
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_FAILED);
192+
otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, OT_ERROR_ABORT);
193193
}
194194
}
195195
#else

0 commit comments

Comments
 (0)