From ab08d61ee2db9d6bec919a793859c7b5957a5571 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 22 Oct 2023 08:54:13 +0200 Subject: [PATCH] Fixed badly computed vibration strength, which could'nt reach 255... --- src/W800_SDK_v1.00.10/app/gfx/common_screen_components.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.c b/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.c index 8d9c62c..d6a9911 100644 --- a/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.c +++ b/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.c @@ -2,6 +2,8 @@ #include "watch_peripherals.h" #include "watch_settings.h" +#include "app_log.h" + /*** * It is needed to have a reference on two header_titles because when * switching from one screen using a header to an other screen which is also using one @@ -61,7 +63,7 @@ void common_screen_header_update_title(const char * title) void common_screen_onclick_vibration(void) { - uint16_t vibration_strength = persistency_get_settings()->display.display_vibrate_on_touch_strength*32; + uint16_t vibration_strength = (persistency_get_settings()->display.display_vibrate_on_touch_strength + 1)*32; uint32_t vibration_duration_ms = 0; if(persistency_get_settings()->display.display_vibrate_on_touch_duration) vibration_duration_ms = persistency_get_settings()->display.display_vibrate_on_touch_duration*50 + 50;