reenable nvs

This commit is contained in:
Morgan 'ARR\!' Allen 2020-10-25 20:21:07 -07:00
parent b71f36d7a2
commit be16b2c01c
2 changed files with 2 additions and 2 deletions

View File

@ -6,6 +6,7 @@
#define PUMP_COUNT (4)
static xQueueHandle gpio_evt_queue = NULL;
nvs_handle_t config_handle;
extern uint8_t mac[6];

View File

@ -20,8 +20,8 @@ static const char *TAG = "BARBACK";
uint8_t mac[6];
void app_main(void) {
/*
esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
err = nvs_flash_init();
@ -34,7 +34,6 @@ void app_main(void) {
} else {
ESP_LOGI(TAG, "config_handle: %d", config_handle);
}
*/
esp_efuse_mac_get_default((uint8_t*)&mac);