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 @@ #include "rgblight.h" #include "color.h" #include "debug.h" +#include "util.h" #include "led_tables.h" #include <lib/lib8tion/lib8tion.h> #ifdef EEPROM_ENABLE @@ -30,13 +31,6 @@ # include "velocikey.h" #endif -#ifndef MIN -# define MIN(a, b) (((a) < (b)) ? (a) : (b)) -#endif -#ifndef MAX -# define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#endif - #ifdef RGBLIGHT_SPLIT /* for split keyboard */ # define RGBLIGHT_SPLIT_SET_CHANGE_MODE rgblight_status.change_flags |= RGBLIGHT_STATUS_CHANGE_MODE |