fix nvs_handle declaration
This commit is contained in:
parent
133dcffe7c
commit
3d3e595dfc
2 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
|||
#define PUMP_COUNT (4)
|
||||
|
||||
static QueueHandle_t gpio_evt_queue = NULL;
|
||||
nvs_handle_t config_handle;
|
||||
extern nvs_handle_t config_handle;
|
||||
|
||||
extern uint8_t mac[6];
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
static const char *TAG = "BARBACK";
|
||||
|
||||
uint8_t mac[6];
|
||||
nvs_handle_t config_handle = {};
|
||||
|
||||
void app_main(void) {
|
||||
esp_err_t err = nvs_flash_init();
|
||||
|
@ -33,7 +34,7 @@ void app_main(void) {
|
|||
if (err != ESP_OK) {
|
||||
printf("Error (%s) opening NVS handle!\n", esp_err_to_name(err));
|
||||
} else {
|
||||
ESP_LOGI(TAG, "config_handle: %d", config_handle);
|
||||
ESP_LOGI(TAG, "config_handle: %d", (int)config_handle);
|
||||
}
|
||||
|
||||
esp_efuse_mac_get_default((uint8_t*)&mac);
|
||||
|
|
Loading…
Reference in a new issue