aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index 9ce3b2309..a2d6fe7a0 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -325,13 +325,13 @@ void rgblight_disable_noeeprom(void) {
325 325
326 326
327// Deals with the messy details of incrementing an integer 327// Deals with the messy details of incrementing an integer
328uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { 328static uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) {
329 int16_t new_value = value; 329 int16_t new_value = value;
330 new_value += step; 330 new_value += step;
331 return MIN( MAX( new_value, min ), max ); 331 return MIN( MAX( new_value, min ), max );
332} 332}
333 333
334uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { 334static uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) {
335 int16_t new_value = value; 335 int16_t new_value = value;
336 new_value -= step; 336 new_value -= step;
337 return MIN( MAX( new_value, min ), max ); 337 return MIN( MAX( new_value, min ), max );