diff options
| author | Drashna Jaelre <drashna@live.com> | 2018-12-03 10:27:15 -0800 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 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)
* 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 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 |
| 328 | uint8_t increment( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { | 328 | static 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 | ||
| 334 | uint8_t decrement( uint8_t value, uint8_t step, uint8_t min, uint8_t max ) { | 334 | static 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 ); |
