changed folder structure

used advices from https://docs.espressif.com/projects/esp-idf/en/v5.2.1/esp32/api-guides/build-system.html

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-05-07 12:15:58 +02:00
parent 05c02febf9
commit f955848721
5 changed files with 30 additions and 13 deletions

View File

@@ -1,22 +1,11 @@
#include <stdio.h>
#include <esp_task_wdt.h>
#include <nvs.h>
#include <nvs_flash.h>
void nvs_init()
{
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND)
{
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK(ret);
}
#include "osr_ble.h"
void setup()
{
nvs_init();
osr_ble_init();
}
void loop()