fix(ieee802154): fix ieee802154 mac deinit and config ieee802154_enable

This commit is contained in:
xiaqilin
2023-12-14 10:47:56 +08:00
parent 80c2bd3d7c
commit 04aa61717c
4 changed files with 32 additions and 4 deletions
+3 -1
View File
@@ -29,8 +29,10 @@ esp_err_t esp_ieee802154_enable(void)
esp_err_t esp_ieee802154_disable(void)
{
esp_btbb_disable();
esp_phy_disable(PHY_MODEM_IEEE802154);
ieee802154_disable();
return ESP_OK;
return ieee802154_mac_deinit();
}
uint8_t esp_ieee802154_get_channel(void)