Tidy up duplication of MIN/MAX fallback implementations (#20236)
This commit is contained in:
parent
42aa83787f
commit
b01dc36fbf
8 changed files with 7 additions and 32 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue