diff options
author | QMK Bot <hello@qmk.fm> | 2020-08-29 22:57:48 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2020-08-29 22:57:48 +0000 |
commit | a3db72df7299140e52f57d082a3742a8b480a226 (patch) | |
tree | 41d62db0fecd2eb0aeae1744b52e677555e55288 /quantum/process_keycode/process_combo.c | |
parent | 000eb14d789f84afc7dbd33955dbfb6481792f0b (diff) | |
download | qmk_firmware-a3db72df7299140e52f57d082a3742a8b480a226.tar.gz qmk_firmware-a3db72df7299140e52f57d082a3742a8b480a226.zip |
format code according to conventions [skip ci]
Diffstat (limited to 'quantum/process_keycode/process_combo.c')
-rw-r--r-- | quantum/process_keycode/process_combo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_combo.c b/quantum/process_keycode/process_combo.c index 1f715f43b..f38d7d47a 100644 --- a/quantum/process_keycode/process_combo.c +++ b/quantum/process_keycode/process_combo.c | |||
@@ -27,7 +27,7 @@ extern int COMBO_LEN; | |||
27 | __attribute__((weak)) void process_combo_event(uint16_t combo_index, bool pressed) {} | 27 | __attribute__((weak)) void process_combo_event(uint16_t combo_index, bool pressed) {} |
28 | 28 | ||
29 | static uint16_t timer = 0; | 29 | static uint16_t timer = 0; |
30 | static uint16_t current_combo_index = 0; | 30 | static uint16_t current_combo_index = 0; |
31 | static bool drop_buffer = false; | 31 | static bool drop_buffer = false; |
32 | static bool is_active = false; | 32 | static bool is_active = false; |
33 | static bool b_combo_enable = true; // defaults to enabled | 33 | static bool b_combo_enable = true; // defaults to enabled |
@@ -82,7 +82,7 @@ static inline void dump_key_buffer(bool emit) { | |||
82 | } while (0) | 82 | } while (0) |
83 | 83 | ||
84 | static bool process_single_combo(combo_t *combo, uint16_t keycode, keyrecord_t *record) { | 84 | static bool process_single_combo(combo_t *combo, uint16_t keycode, keyrecord_t *record) { |
85 | uint8_t count = 0; | 85 | uint8_t count = 0; |
86 | uint16_t index = -1; | 86 | uint16_t index = -1; |
87 | /* Find index of keycode and number of combo keys */ | 87 | /* Find index of keycode and number of combo keys */ |
88 | for (const uint16_t *keys = combo->keys;; ++count) { | 88 | for (const uint16_t *keys = combo->keys;; ++count) { |