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:
parent
288a64d1ce
commit
dea34c70e8
@ -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,
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user