From 71fbc50c393497a012e877c93fa82fa9ca8a35d8 Mon Sep 17 00:00:00 2001 From: Philippe Bonnaz Date: Wed, 13 Sep 2023 11:19:41 +0200 Subject: [PATCH] Add new settings version 2, new type os_setting_v2_t --- include/os_settings.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/include/os_settings.h b/include/os_settings.h index 14891b2ab..b94590dae 100644 --- a/include/os_settings.h +++ b/include/os_settings.h @@ -71,6 +71,38 @@ typedef enum os_setting_v1_e { OS_SETTING_LAST_V1, } os_setting_v1_t; +typedef enum os_setting_v2_e { + OS_SETTING_BRIGHTNESS_V2, + OS_SETTING_INVERT_V2, + OS_SETTING_ROTATION_V2, + OS_SETTING_MCU_UPGRADE_V2=OS_SETTING_ROTATION_V2, + OS_SETTING_AUTO_LOCK_DELAY_V2, + OS_SETTING_SCREEN_LOCK_DELAY_V2, + OS_SETTING_POWER_OFF_DELAY_V2, + + OS_SETTING_PLANEMODE_V2, + + // default off + OS_SETTING_PRIVACY_MODE_V2, + + OS_SETTING_LANGUAGE_V2, + + OS_SETTING_PIEZO_SOUND_V2, + + // before that value, all settings are only making use of the length value with a null buffer to be set, and are returned through the return value with a maxlength = 0 in the get. + OS_SETTING_LAST_INT_V2, + + // screen saver string to display + OS_SETTING_SAVER_STRING_V2=OS_SETTING_LAST_INT_V2, + OS_SETTING_DEVICENAME_V2, + OS_SETTING_BLEMACADR_V2, + + OS_SETTING_NFC_TAG_CONTENT_V2, + OS_SETTING_FEATURES_V2, + + OS_SETTING_LAST_V2, +} os_setting_v2_t; + typedef enum os_setting_e { OS_SETTING_BRIGHTNESS, OS_SETTING_INVERT, @@ -97,7 +129,6 @@ typedef enum os_setting_e { OS_SETTING_DEVICENAME, OS_SETTING_BLEMACADR, - OS_SETTING_NFC_TAG_CONTENT, OS_SETTING_FEATURES, OS_SETTING_LAST,