[CI] Format code according to conventions (#25828)
Format code according to conventions
This commit is contained in:
parent
ee60542bd6
commit
43bbb5e99a
5 changed files with 8 additions and 10 deletions
|
|
@ -71,8 +71,7 @@ last_hit_t g_last_hit_tracker;
|
|||
#endif // LED_MATRIX_KEYREACTIVE_ENABLED
|
||||
|
||||
#ifndef LED_MATRIX_FLAG_STEPS
|
||||
# define LED_MATRIX_FLAG_STEPS \
|
||||
{ LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE }
|
||||
# define LED_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_NONE}
|
||||
#endif
|
||||
static const uint8_t led_matrix_flag_steps[] = LED_MATRIX_FLAG_STEPS;
|
||||
#define LED_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(led_matrix_flag_steps)
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ static inline void process_tap_dance_action_on_dance_finished(tap_dance_action_t
|
|||
|
||||
bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||
tap_dance_action_t *action;
|
||||
tap_dance_state_t * state;
|
||||
tap_dance_state_t *state;
|
||||
|
||||
if (!record->event.pressed) return false;
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
|||
bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
||||
uint8_t td_index;
|
||||
tap_dance_action_t *action;
|
||||
tap_dance_state_t * state;
|
||||
tap_dance_state_t *state;
|
||||
|
||||
switch (keycode) {
|
||||
case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
|
||||
|
|
@ -233,7 +233,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
|
|||
|
||||
void tap_dance_task(void) {
|
||||
tap_dance_action_t *action;
|
||||
tap_dance_state_t * state;
|
||||
tap_dance_state_t *state;
|
||||
|
||||
if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -73,8 +73,7 @@ last_hit_t g_last_hit_tracker;
|
|||
#endif // RGB_MATRIX_KEYREACTIVE_ENABLED
|
||||
|
||||
#ifndef RGB_MATRIX_FLAG_STEPS
|
||||
# define RGB_MATRIX_FLAG_STEPS \
|
||||
{ LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE }
|
||||
# define RGB_MATRIX_FLAG_STEPS {LED_FLAG_ALL, LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER, LED_FLAG_UNDERGLOW, LED_FLAG_NONE}
|
||||
#endif
|
||||
static const uint8_t rgb_matrix_flag_steps[] = RGB_MATRIX_FLAG_STEPS;
|
||||
#define RGB_MATRIX_FLAG_STEPS_COUNT ARRAY_SIZE(rgb_matrix_flag_steps)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue