format code according to conventions [skip ci]
This commit is contained in:
parent
2ffb08843b
commit
1aa40dde46
2 changed files with 23 additions and 20 deletions
|
@ -180,10 +180,13 @@ typedef struct {
|
||||||
} rgblight_segment_t;
|
} rgblight_segment_t;
|
||||||
|
|
||||||
# define RGBLIGHT_END_SEGMENT_INDEX (255)
|
# define RGBLIGHT_END_SEGMENT_INDEX (255)
|
||||||
# define RGBLIGHT_END_SEGMENTS {RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0}
|
# define RGBLIGHT_END_SEGMENTS \
|
||||||
|
{ RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0 }
|
||||||
# define RGBLIGHT_MAX_LAYERS 8
|
# define RGBLIGHT_MAX_LAYERS 8
|
||||||
# define RGBLIGHT_LAYER_SEGMENTS(...) { __VA_ARGS__, RGBLIGHT_END_SEGMENTS }
|
# define RGBLIGHT_LAYER_SEGMENTS(...) \
|
||||||
# define RGBLIGHT_LAYERS_LIST(...) { __VA_ARGS__, NULL }
|
{ __VA_ARGS__, RGBLIGHT_END_SEGMENTS }
|
||||||
|
# define RGBLIGHT_LAYERS_LIST(...) \
|
||||||
|
{ __VA_ARGS__, NULL }
|
||||||
|
|
||||||
// Get/set enabled rgblight layers
|
// Get/set enabled rgblight layers
|
||||||
void rgblight_set_layer_state(uint8_t layer, bool enabled);
|
void rgblight_set_layer_state(uint8_t layer, bool enabled);
|
||||||
|
|
Loading…
Reference in a new issue