diff --git a/examples/platforms/emsk/openthread-core-emsk-config.h b/examples/platforms/emsk/openthread-core-emsk-config.h index 888c1354e..94f1e443d 100644 --- a/examples/platforms/emsk/openthread-core-emsk-config.h +++ b/examples/platforms/emsk/openthread-core-emsk-config.h @@ -58,12 +58,4 @@ */ #define OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN 0 -/** - * @def OPENTHREAD_CONFIG_LEGACY_TRANSMIT_DONE - * - * Define to 1 if you want use legacy transmit done. - * - */ -#define OPENTHREAD_CONFIG_LEGACY_TRANSMIT_DONE 1 - #endif // OPENTHREAD_CORE_EMSK_CONFIG_H_ diff --git a/examples/platforms/emsk/radio.c b/examples/platforms/emsk/radio.c index fbd90c60c..18b775b26 100644 --- a/examples/platforms/emsk/radio.c +++ b/examples/platforms/emsk/radio.c @@ -550,15 +550,13 @@ void emskRadioProcess(otInstance *aInstance) if (sTransmitError != OT_ERROR_NONE || (sTransmitFrame.mPsdu[0] & IEEE802154_ACK_REQUEST) == 0) { sState = OT_RADIO_STATE_RECEIVE; - otPlatRadioTransmitDone(aInstance, &sTransmitFrame, false, sTransmitError); + otPlatRadioTxDone(aInstance, &sTransmitFrame, NULL, sTransmitError); } else if (Mrf24StatusTx == 1) { Mrf24StatusTx = 0; sState = OT_RADIO_STATE_RECEIVE; - otPlatRadioTransmitDone(aInstance, &sTransmitFrame, - (mrf24j40_read_short_ctrl_reg(MRF24J40_TXNCON) & MRF24J40_FPSTAT) != 0, - sTransmitError); + otPlatRadioTxDone(aInstance, &sTransmitFrame, &sReceiveFrame, sTransmitError); } }