diff options
| author | Joel Challis <git@zvecr.com> | 2023-03-23 05:30:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-23 05:30:30 +0000 |
| commit | b01dc36fbf09c3ebf8efe1bac54205ace1b1c6cc (patch) | |
| tree | dacbffac9d1918eb8962f631517cfec544adb965 /quantum/rgblight | |
| parent | 42aa83787fd0d3a5acd0ac7fbe7d148648be742d (diff) | |
Tidy up duplication of MIN/MAX fallback implementations (#20236)
Diffstat (limited to 'quantum/rgblight')
| -rw-r--r-- | quantum/rgblight/rgblight.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/quantum/rgblight/rgblight.c b/quantum/rgblight/rgblight.c index 4c476f924f..02188df95b 100644 --- a/quantum/rgblight/rgblight.c +++ b/quantum/rgblight/rgblight.c | |||
| @@ -21,6 +21,7 @@ | |||
| 21 | #include "rgblight.h" | 21 | #include "rgblight.h" |
| 22 | #include "color.h" | 22 | #include "color.h" |
| 23 | #include "debug.h" | 23 | #include "debug.h" |
| 24 | #include "util.h" | ||
| 24 | #include "led_tables.h" | 25 | #include "led_tables.h" |
| 25 | #include <lib/lib8tion/lib8tion.h> | 26 | #include <lib/lib8tion/lib8tion.h> |
| 26 | #ifdef EEPROM_ENABLE | 27 | #ifdef EEPROM_ENABLE |
| @@ -30,13 +31,6 @@ | |||
| 30 | # include "velocikey.h" | 31 | # include "velocikey.h" |
| 31 | #endif | 32 | #endif |
| 32 | 33 | ||
| 33 | #ifndef MIN | ||
| 34 | # define MIN(a, b) (((a) < (b)) ? (a) : (b)) | ||
| 35 | #endif | ||
| 36 | #ifndef MAX | ||
| 37 | # define MAX(a, b) (((a) > (b)) ? (a) : (b)) | ||
| 38 | #endif | ||
| 39 | |||
| 40 | #ifdef RGBLIGHT_SPLIT | 34 | #ifdef RGBLIGHT_SPLIT |
| 41 | /* for split keyboard */ | 35 | /* for split keyboard */ |
| 42 | # define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE | 36 | # define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE |
