mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
Merge branch 'fix/add_check_and_fix_docs_for_154' into 'master'
fix(802.15.4) added some error checks to make the code more robust See merge request espressif/esp-idf!44110
This commit is contained in:
@@ -413,7 +413,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user