From a9a16cbd57b85ec902e447887b12984d709a1030 Mon Sep 17 00:00:00 2001 From: xiaqilin Date: Mon, 17 Jul 2023 15:39:00 +0800 Subject: [PATCH] fix(ieee802154): fix ieee802154 sleep state --- components/ieee802154/driver/esp_ieee802154_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ieee802154/driver/esp_ieee802154_dev.c b/components/ieee802154/driver/esp_ieee802154_dev.c index 042c8b5d07..ddd492bbf3 100644 --- a/components/ieee802154/driver/esp_ieee802154_dev.c +++ b/components/ieee802154/driver/esp_ieee802154_dev.c @@ -804,7 +804,7 @@ esp_err_t ieee802154_sleep(void) ieee802154_enter_critical(); stop_current_operation(); - ieee802154_set_state(IEEE802154_STATE_IDLE); + ieee802154_set_state(IEEE802154_STATE_SLEEP); ieee802154_exit_critical(); return ESP_OK;