reenable nvs
This commit is contained in:
parent
b71f36d7a2
commit
be16b2c01c
2 changed files with 2 additions and 2 deletions
|
@ -6,6 +6,7 @@
|
||||||
#define PUMP_COUNT (4)
|
#define PUMP_COUNT (4)
|
||||||
|
|
||||||
static xQueueHandle gpio_evt_queue = NULL;
|
static xQueueHandle gpio_evt_queue = NULL;
|
||||||
|
nvs_handle_t config_handle;
|
||||||
|
|
||||||
extern uint8_t mac[6];
|
extern uint8_t mac[6];
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ static const char *TAG = "BARBACK";
|
||||||
uint8_t mac[6];
|
uint8_t mac[6];
|
||||||
|
|
||||||
void app_main(void) {
|
void app_main(void) {
|
||||||
/*
|
|
||||||
esp_err_t err = nvs_flash_init();
|
esp_err_t err = nvs_flash_init();
|
||||||
|
|
||||||
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {
|
||||||
ESP_ERROR_CHECK(nvs_flash_erase());
|
ESP_ERROR_CHECK(nvs_flash_erase());
|
||||||
err = nvs_flash_init();
|
err = nvs_flash_init();
|
||||||
|
@ -34,7 +34,6 @@ void app_main(void) {
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGI(TAG, "config_handle: %d", config_handle);
|
ESP_LOGI(TAG, "config_handle: %d", config_handle);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
esp_efuse_mac_get_default((uint8_t*)&mac);
|
esp_efuse_mac_get_default((uint8_t*)&mac);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue