From 0f2d417a74536d510e792ad537f92ffe77f26bae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Pan=C3=AD=C4=8Dek?= <693432+adrianpanicek@users.noreply.github.com> Date: Wed, 29 Nov 2017 09:26:44 +0100 Subject: [PATCH] Small typo fix Signed-off-by: krzychb Merges https://github.com/espressif/esp-idf/pull/1331 --- examples/storage/nvs_rw_value/main/nvs_value_example_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/storage/nvs_rw_value/main/nvs_value_example_main.c b/examples/storage/nvs_rw_value/main/nvs_value_example_main.c index 03205ad4d..0b99d6c98 100644 --- a/examples/storage/nvs_rw_value/main/nvs_value_example_main.c +++ b/examples/storage/nvs_rw_value/main/nvs_value_example_main.c @@ -41,7 +41,7 @@ void app_main() // Read printf("Reading restart counter from NVS ... "); int32_t restart_counter = 0; // value will default to 0, if not set yet in NVS - err = nvs_get_i32(my_handle, "restart_conter", &restart_counter); + err = nvs_get_i32(my_handle, "restart_counter", &restart_counter); switch (err) { case ESP_OK: printf("Done\n"); @@ -57,7 +57,7 @@ void app_main() // Write printf("Updating restart counter in NVS ... "); restart_counter++; - err = nvs_set_i32(my_handle, "restart_conter", restart_counter); + err = nvs_set_i32(my_handle, "restart_counter", restart_counter); printf((err != ESP_OK) ? "Failed!\n" : "Done\n"); // Commit written value.