Added a persistency setting : the Activity one, which will be used to save the step counter feature (Enabled or not) as well as other activity related parameters

This commit is contained in:
Th3maz1ng 2023-04-10 21:21:59 +02:00
parent 288a64d1ce
commit dea34c70e8
2 changed files with 13 additions and 0 deletions

View File

@ -25,6 +25,9 @@ static const WatchSettings_t defaultWatchSettings =
.display_vibrate_on_touch_strength = 6,
.display_wrist_wakeup = true,
},
.activity = {
.activity_step_counter_en = true,
},
.notification = {
.notification_vibration_duration = 3,
.notification_vibration_strength = 6,

View File

@ -36,6 +36,15 @@ typedef struct Display
display_vibrate_on_touch_duration:3;
} Display_t;
/**
* @brief Activity settings
*
*/
typedef struct Activity
{
uint32_t activity_step_counter_en:1;
} Activity_t;
/**
* @brief Notification Settings
*
@ -81,6 +90,7 @@ typedef struct WatchSettings
Notification_t notification;
Connectivity_t connectivity;
LanguageAndUI_t languageAndUI;
Activity_t activity;
} WatchSettings_t;
/**