From c4f32fd9074708de6e95bfa75ddedcf4a1cee4ed Mon Sep 17 00:00:00 2001 From: Diego Ismirlian Date: Tue, 14 Jan 2020 11:13:40 -0300 Subject: [PATCH] [efr32] Radio: Use assert to detect issues when interacting with RAIL (#4482) --- examples/platforms/efr32mg12/radio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/platforms/efr32mg12/radio.c b/examples/platforms/efr32mg12/radio.c index 64a731a8d..e3beb84ae 100644 --- a/examples/platforms/efr32mg12/radio.c +++ b/examples/platforms/efr32mg12/radio.c @@ -698,11 +698,11 @@ static void processNextRxPacket(otInstance *aInstance) length = packetInfo.packetBytes + 1; - // check the length in recv packet info structure - otEXPECT(length == packetInfo.firstPortionData[0]); + // check the length in recv packet info structure; RAIL should take care of this. + assert(length == packetInfo.firstPortionData[0]); - // check the length validity of recv packet - otEXPECT(length >= IEEE802154_MIN_LENGTH && length <= IEEE802154_MAX_LENGTH); + // check the length validity of recv packet; RAIL should take care of this. + assert(length >= IEEE802154_MIN_LENGTH && length <= IEEE802154_MAX_LENGTH); otLogInfoPlat("Received data:%d", length);