fix(802.15.4) added some error checks to make the code more robust

This commit is contained in:
zwx
2026-03-11 17:59:14 +08:00
parent d2ca57c623
commit 06c0c93dea
15 changed files with 299 additions and 159 deletions
@@ -401,7 +401,7 @@ void otPlatRadioClearSrcMatchExtEntries(otInstance *aInstance)
otError otPlatRadioEnergyScan(otInstance *aInstance, uint8_t aScanChannel, uint16_t aScanDuration)
{
esp_ieee802154_set_channel(aScanChannel);
esp_ieee802154_energy_detect(aScanDuration * US_PER_MS / US_PER_SYMBLE);
esp_ieee802154_energy_detect(aScanDuration * US_PER_MS / US_PER_SYMBOL);
return OT_ERROR_NONE;
}