Enabling the settings save feature (called when leaving the settings screen) only when the HARDWARE_PLATFORM is set to SMART_WATCH_PCB_RELEASE

This commit is contained in:
Anatole SCHRAMM 2023-10-25 12:46:43 +02:00
parent 01ba704adc
commit 6b06e28394

View File

@ -1,3 +1,4 @@
#include "app_config.h"
#include "app_common.h" #include "app_common.h"
#include "app_utils.h" #include "app_utils.h"
#include "lvgl.h" #include "lvgl.h"
@ -386,10 +387,13 @@ static void getBMP280DataCb(float *temperature, float *pressure)
static void saveSettingsToFlashCb(void) static void saveSettingsToFlashCb(void)
{ {
/*if(!persistency_save_settings_to_flash()) // Only enable the settings save feature if we compile in SMART_WATCH_PCB_RELEASE mode
#if HARDWARE_PLATFORM == SMART_WATCH_PCB_RELEASE
if(!persistency_save_settings_to_flash())
{ {
APP_LOG_ERROR("Failed to save watch settings to flash"); APP_LOG_ERROR("Failed to save watch settings to flash");
}*/ }
#endif
} }
static void performFactoryResetCb() static void performFactoryResetCb()