From dea34c70e80a751d1ad88fb65d363aa872eacd6a Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Mon, 10 Apr 2023 21:21:59 +0200 Subject: [PATCH] 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 --- src/W800_SDK_v1.00.10/app/persistency/watch_settings.c | 3 +++ src/W800_SDK_v1.00.10/app/persistency/watch_settings.h | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/W800_SDK_v1.00.10/app/persistency/watch_settings.c b/src/W800_SDK_v1.00.10/app/persistency/watch_settings.c index eaa5b7b..69ac077 100644 --- a/src/W800_SDK_v1.00.10/app/persistency/watch_settings.c +++ b/src/W800_SDK_v1.00.10/app/persistency/watch_settings.c @@ -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, diff --git a/src/W800_SDK_v1.00.10/app/persistency/watch_settings.h b/src/W800_SDK_v1.00.10/app/persistency/watch_settings.h index 260b7bf..4307954 100644 --- a/src/W800_SDK_v1.00.10/app/persistency/watch_settings.h +++ b/src/W800_SDK_v1.00.10/app/persistency/watch_settings.h @@ -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; /**