Skip to content

Commit

Permalink
Merge pull request aws#1 from mahavirj/alexa-noxon-patch-1
Browse files Browse the repository at this point in the history
extend critical protection in flash init
  • Loading branch information
mahavirj committed Nov 29, 2018
2 parents bf7e921 + 5168679 commit 6272bd3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ static void initialize_nvs_partition()
{
static bool nvs_inited;

portENTER_CRITICAL();
if (nvs_inited == true) {
portEXIT_CRITICAL();
return;
}

ESP_LOGI(TAG, "Initializing NVS partition: \"%s\"", NVS_PART_NAME);

portENTER_CRITICAL();


#if CONFIG_NVS_ENCRYPTION
if (esp_flash_encryption_enabled()) {
Expand Down

0 comments on commit 6272bd3

Please sign in to comment.