mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
Merge branch 'fix/ieee802154_example_rx_v5.2' into 'release/v5.2'
fix(ieee802154): set rx_when_idle to false when Rx stop (v5.2) See merge request espressif/esp-idf!40826
This commit is contained in:
@@ -809,6 +809,7 @@ static int process_rx(int argc, char **argv)
|
|||||||
if (rx_args.receive->count == 1) {
|
if (rx_args.receive->count == 1) {
|
||||||
if (rx_args.receive->ival[0] == 0) {
|
if (rx_args.receive->ival[0] == 0) {
|
||||||
esp_ieee802154_sleep();
|
esp_ieee802154_sleep();
|
||||||
|
esp_ieee802154_set_rx_when_idle(false);
|
||||||
ESP_LOGI(TAG, "radio exit receive mode");
|
ESP_LOGI(TAG, "radio exit receive mode");
|
||||||
} else if (rx_args.receive->ival[0] == 1) { // receive, non-blocking
|
} else if (rx_args.receive->ival[0] == 1) { // receive, non-blocking
|
||||||
ESP_LOGI(TAG, "RX Start");
|
ESP_LOGI(TAG, "RX Start");
|
||||||
|
@@ -30,6 +30,8 @@ static void initialize_nvs(void)
|
|||||||
|
|
||||||
void app_main(void)
|
void app_main(void)
|
||||||
{
|
{
|
||||||
|
initialize_nvs();
|
||||||
|
|
||||||
esp_ieee802154_enable();
|
esp_ieee802154_enable();
|
||||||
esp_console_repl_t *repl = NULL;
|
esp_console_repl_t *repl = NULL;
|
||||||
esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT();
|
esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT();
|
||||||
@@ -39,8 +41,6 @@ void app_main(void)
|
|||||||
repl_config.prompt = PROMPT_STR ">";
|
repl_config.prompt = PROMPT_STR ">";
|
||||||
repl_config.max_cmdline_length = 256;
|
repl_config.max_cmdline_length = 256;
|
||||||
|
|
||||||
initialize_nvs();
|
|
||||||
|
|
||||||
/* Register commands */
|
/* Register commands */
|
||||||
esp_console_register_help_command();
|
esp_console_register_help_command();
|
||||||
register_ieee802154_cmd();
|
register_ieee802154_cmd();
|
||||||
|
Reference in New Issue
Block a user