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 d6a9911..3cd567e 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 @@ -1,6 +1,5 @@ #include "lvgl.h" #include "watch_peripherals.h" -#include "watch_settings.h" #include "app_log.h" @@ -60,13 +59,3 @@ void common_screen_header_update_title(const char * title) if(!*header_title_p)return; lv_label_set_text_static(*header_title_p, title); } - -void common_screen_onclick_vibration(void) -{ - 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; - - watch_peripherals_vibrate(vibration_strength > 255 ? 255 : vibration_strength, vibration_duration_ms); -} diff --git a/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.h b/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.h index 6980d85..06e945a 100644 --- a/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.h +++ b/src/W800_SDK_v1.00.10/app/gfx/common_screen_components.h @@ -19,10 +19,4 @@ void common_screen_header_component(lv_obj_t *parent, const char * title, lv_coo */ void common_screen_header_update_title(const char * title); -/** - * @brief Vibrate to give a feedback to the user when an item was clicked - * - */ -void common_screen_onclick_vibration(void); - #endif //COMMON_SCREEN_COMPONENTS_H