mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
fix(ieee802154): initialize nvs before enable ieee802154
This commit is contained in:
@@ -32,6 +32,8 @@ static void initialize_nvs(void)
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
initialize_nvs();
|
||||
|
||||
esp_ieee802154_enable();
|
||||
esp_console_repl_t *repl = NULL;
|
||||
esp_console_repl_config_t repl_config = ESP_CONSOLE_REPL_CONFIG_DEFAULT();
|
||||
@@ -41,8 +43,6 @@ void app_main(void)
|
||||
repl_config.prompt = PROMPT_STR ">";
|
||||
repl_config.max_cmdline_length = 256;
|
||||
|
||||
initialize_nvs();
|
||||
|
||||
/* Register commands */
|
||||
esp_console_register_help_command();
|
||||
register_ieee802154_cmd();
|
||||
|
Reference in New Issue
Block a user