[GH-ISSUE #1039] Is duplicate err variable in WiFiManager.cpp Developer brench? #886

Closed
opened 2026-02-28 01:27:31 +03:00 by kerem · 0 comments
Owner

Originally created by @vvs551 on GitHub (Apr 18, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1039

bool WiFiManager::erase(bool opt){
DEBUG_WM("Erasing");

#if defined(ESP32) && ((defined(WM_ERASE_NVS) || defined(nvs_flash_h)))
// if opt true, do nvs erase
if(opt){
DEBUG_WM("Erasing NVS");

int err; // <----- ??

  esp_err_t err;
  err = nvs_flash_init();
Originally created by @vvs551 on GitHub (Apr 18, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1039 bool WiFiManager::erase(bool opt){ DEBUG_WM("Erasing"); #if defined(ESP32) && ((defined(WM_ERASE_NVS) || defined(nvs_flash_h))) // if opt true, do nvs erase if(opt){ DEBUG_WM("Erasing NVS"); ### int err; // <----- ?? esp_err_t err; err = nvs_flash_init();
kerem 2026-02-28 01:27:31 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#886
No description provided.