From 07e5867d21650c7060239d83878483ef75d1ab6c Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 1 Oct 2023 19:34:08 +0200 Subject: [PATCH] Updated the watch_peripherals_vibrate_with_pattern function sighature, the parameter is now a const --- .../app/app_drivers/watch_peripherals/watch_peripherals.c | 2 +- .../app/app_drivers/watch_peripherals/watch_peripherals.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.c b/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.c index 5995eb7..859ed17 100644 --- a/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.c +++ b/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.c @@ -351,7 +351,7 @@ void watch_peripherals_vibrate(uint8_t strength, uint32_t durationMs) tls_timer_start(_vibration_motor_timer_id); } -void watch_peripherals_vibrate_with_pattern(uint8_t strength, uint16_t pattern[VIBRATION_PATTERN_SLOTS]) +void watch_peripherals_vibrate_with_pattern(uint8_t strength, const uint16_t pattern[VIBRATION_PATTERN_SLOTS]) { if(!pattern || !strength) return; if(!pattern[0]) return; diff --git a/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.h b/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.h index 9f4f454..9194902 100644 --- a/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.h +++ b/src/W800_SDK_v1.00.10/app/app_drivers/watch_peripherals/watch_peripherals.h @@ -92,7 +92,7 @@ void watch_peripherals_vibrate(uint8_t strength, uint32_t durationMs); * @param pattern the vibration pattern : a pointer to an array of size @ref VIBRATION_PATTERN_SLOTS. * The first duration is the on duration, the second is the off duration and so on. */ -void watch_peripherals_vibrate_with_pattern(uint8_t strength, uint16_t pattern[VIBRATION_PATTERN_SLOTS]); +void watch_peripherals_vibrate_with_pattern(uint8_t strength, const uint16_t pattern[VIBRATION_PATTERN_SLOTS]); /** * @brief Sets the brightness of the LCD display