From: Adrián Paníček <693432+adrianpanicek@users.noreply.github.com> Date: Wed, 29 Nov 2017 08:26:44 +0000 (+0100) Subject: Small typo fix X-Git-Tag: v3.1-dev~9^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f2d417a74536d510e792ad537f92ffe77f26bae;p=esp-idf Small typo fix Signed-off-by: krzychb Merges https://github.com/espressif/esp-idf/pull/1331 --- 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 03205ad4da..0b99d6c98f 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.