diff options
author | Drashna Jaelre <[email protected]> | 2018-12-03 10:27:15 -0800 |
---|---|---|
committer | MechMerlin <[email protected]> | 2018-12-03 10:27:15 -0800 |
commit | da1afe152af5a6dfb5c0bb28d86d34940162f960 (patch) | |
tree | 30f9572d46787799f4797a165464df0d2103f350 /quantum/rgblight.c | |
parent | fe982caf5d69fdb2d6f1dec123a630df11a98282 (diff) | |
download | qmk_firmware-da1afe152af5a6dfb5c0bb28d86d34940162f960.tar.gz qmk_firmware-da1afe152af5a6dfb5c0bb28d86d34940162f960.zip |
Fix up RGB Matrix code (#4503)0.6.194
* Fix up RGB Matrix code
* Convert RGBLIGHT functions to rgbmatrix ones, and add defines
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r-- | quantum/rgblight.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 9ce3b23092..a2d6fe7a07 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -325,13 +325,13 @@ void rgblight_disable_noeeprom(void) { // Deals with the messy details of incrementing an integer -uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { +static uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { int16_t new_value = value; new_value += step; return MIN( MAX( new_value, min ), max ); } -uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { +static uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { int16_t new_value = value; new_value -= step; return MIN( MAX( new_value, min ), max ); |