mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 21:54:33 +02:00
fix(ieee802154): initialize nvs before enable ieee802154
This commit is contained in:
@@ -30,6 +30,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();
|
||||
@@ -39,8 +41,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