Updated the watch_peripherals_vibrate_with_pattern function sighature, the parameter is now a const
This commit is contained in:
parent
50b12e4548
commit
07e5867d21
@ -351,7 +351,7 @@ void watch_peripherals_vibrate(uint8_t strength, uint32_t durationMs)
|
|||||||
tls_timer_start(_vibration_motor_timer_id);
|
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 || !strength) return;
|
||||||
if(!pattern[0]) return;
|
if(!pattern[0]) return;
|
||||||
|
@ -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.
|
* @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.
|
* 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
|
* @brief Sets the brightness of the LCD display
|
||||||
|
Loading…
Reference in New Issue
Block a user