aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2020-03-22 14:03:14 +0000
committerQMK Bot <hello@qmk.fm>2020-03-22 14:03:14 +0000
commit76cb2b11606e98f1390627331ad753564db63305 (patch)
treec0349a4b0541833cb49a3913022a8c7b8071db00 /quantum/quantum.c
parent5117dff6a26aec4eca04fb9787b4f428884739bc (diff)
downloadqmk_firmware-76cb2b11606e98f1390627331ad753564db63305.tar.gz
qmk_firmware-76cb2b11606e98f1390627331ad753564db63305.zip
format code according to conventions [skip ci]
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index d7dbc49dc..c857e5f7a 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -120,13 +120,9 @@ __attribute__((weak)) bool process_record_kb(uint16_t keycode, keyrecord_t *reco
120 120
121__attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; } 121__attribute__((weak)) bool process_record_user(uint16_t keycode, keyrecord_t *record) { return true; }
122 122
123__attribute__ ((weak)) 123__attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t *record) { post_process_record_user(keycode, record); }
124void post_process_record_kb(uint16_t keycode, keyrecord_t *record) {
125 post_process_record_user(keycode, record);
126}
127 124
128__attribute__ ((weak)) 125__attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
129void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
130 126
131void reset_keyboard(void) { 127void reset_keyboard(void) {
132 clear_keyboard(); 128 clear_keyboard();
@@ -182,8 +178,8 @@ uint16_t get_event_keycode(keyevent_t event) {
182 178
183/* Get keycode, and then call keyboard function */ 179/* Get keycode, and then call keyboard function */
184void post_process_record_quantum(keyrecord_t *record) { 180void post_process_record_quantum(keyrecord_t *record) {
185 uint16_t keycode = get_record_keycode(record); 181 uint16_t keycode = get_record_keycode(record);
186 post_process_record_kb(keycode, record); 182 post_process_record_kb(keycode, record);
187} 183}
188 184
189/* Core keycode function, hands off handling to other functions, 185/* Core keycode function, hands off handling to other functions,
@@ -208,7 +204,7 @@ bool process_record_quantum(keyrecord_t *record) {
208 204
209#ifdef WPM_ENABLE 205#ifdef WPM_ENABLE
210 if (record->event.pressed) { 206 if (record->event.pressed) {
211 update_wpm(keycode); 207 update_wpm(keycode);
212 } 208 }
213#endif 209#endif
214 210
@@ -666,7 +662,7 @@ void matrix_scan_quantum() {
666#endif 662#endif
667 663
668#ifdef WPM_ENABLE 664#ifdef WPM_ENABLE
669 decay_wpm(); 665 decay_wpm();
670#endif 666#endif
671 667
672#ifdef HAPTIC_ENABLE 668#ifdef HAPTIC_ENABLE