freertos-smp: fix nvs_rw_value and nvs_rw_value_cxx tests

TBD
This commit is contained in:
Sudeep Mohanty 2022-06-22 16:28:18 +02:00 committed by BOT
parent 8078092fae
commit 6da5f113e9
2 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,10 @@
void app_main(void) void app_main(void)
{ {
#ifdef CONFIG_FREERTOS_SMP
printf("Running with SMP FreeRTOS configured.\r\n");
#endif
// Initialize NVS // Initialize NVS
esp_err_t err = nvs_flash_init(); esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) { if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {

View File

@ -19,6 +19,10 @@
extern "C" void app_main(void) extern "C" void app_main(void)
{ {
#ifdef CONFIG_FREERTOS_SMP
printf("Running with SMP FreeRTOS configured.\r\n");
#endif
// Initialize NVS // Initialize NVS
esp_err_t err = nvs_flash_init(); esp_err_t err = nvs_flash_init();
if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) { if (err == ESP_ERR_NVS_NO_FREE_PAGES || err == ESP_ERR_NVS_NEW_VERSION_FOUND) {