diff options
author | Less/Rikki <[email protected]> | 2023-09-28 06:51:18 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2023-09-28 11:51:18 +0100 |
commit | 346b06d391dbc760d753a5cffcbbcb58ecc9ce95 (patch) | |
tree | 3c87de30a731a90ee3594f421d4dd54e076d2819 /keyboards/input_club/ergodox_infinity | |
parent | f4677c866e1b4456e1e4bb72265a7d4326eb4816 (diff) | |
download | qmk_firmware-346b06d391dbc760d753a5cffcbbcb58ecc9ce95.tar.gz qmk_firmware-346b06d391dbc760d753a5cffcbbcb58ecc9ce95.zip |
refactor: move default RGB/LED matrix #defines (#21938)
* refactor: move default RGB/LED matrix #defines
Moving the fallback definitions of macros like LED_MATRIX_VAL_STEP and
RGB_MATRIX_MAXIMUM_BRIGHTNESS to header files allows keyboards to
leverage these defaults without requiring #ifdef guards (and often
repeating said fallback definitions).
* style: use if(n)def for consistency
and remove redundant UINT8_MAX checks on maximum brightness
Co-authored-by: Joel Challis <[email protected]>
* refactor: remove INDICATOR_MAX_BRIGHTNESS macro
Co-authored-by: Joel Challis <[email protected]>
---------
Co-authored-by: Joel Challis <[email protected]>
Diffstat (limited to 'keyboards/input_club/ergodox_infinity')
-rw-r--r-- | keyboards/input_club/ergodox_infinity/ergodox_infinity.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c index b8f0d4ae13..70cd26a3f3 100644 --- a/keyboards/input_club/ergodox_infinity/ergodox_infinity.c +++ b/keyboards/input_club/ergodox_infinity/ergodox_infinity.c @@ -117,9 +117,6 @@ void matrix_init_kb(void) { * Since K20x is stuck with a 32 byte EEPROM (see tmk_core/common/chibios/eeprom_teensy.c), * and neither led_matrix_eeconfig.speed or .flags fit in this boundary, just force their values to default on boot. */ -# if !defined(LED_MATRIX_DEFAULT_SPD) -# define LED_MATRIX_DEFAULT_SPD UINT8_MAX / 2 -# endif led_matrix_set_speed(LED_MATRIX_DEFAULT_SPD); led_matrix_set_flags(LED_FLAG_ALL); #endif |