From db61e3af8839edebde2acbcc946a484e148f259b Mon Sep 17 00:00:00 2001 From: Mateusz Date: Fri, 18 Sep 2026 14:20:49 +0200 Subject: [PATCH] submodule common_esp32 added --- .gitmodules | 3 +++ thermo_sensor/main/thermo_sensor.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitmodules diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..002b941 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "thermo_sensor/common_esp32"] + path = thermo_sensor/common_esp32 + url = git@code.yggdrasil.mpiecuch.pl:mateusz/common_esp32.git diff --git a/thermo_sensor/main/thermo_sensor.c b/thermo_sensor/main/thermo_sensor.c index d2d1cb8..0986269 100644 --- a/thermo_sensor/main/thermo_sensor.c +++ b/thermo_sensor/main/thermo_sensor.c @@ -37,7 +37,8 @@ void app_main() // sector - typically 4096B esp_err_t ret = nvs_flash_init(); - if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { + if (ret == ESP_ERR_NVS_NO_FREE_PAGES || + ret == ESP_ERR_NVS_NEW_VERSION_FOUND) { // ESP_ERR_NVS_NEW_VERSION_FOUND - NVS header page is // stored in newer version (newer IDF) than version // it is used by this application