diff options
Diffstat (limited to 'users/drashna/keyrecords')
-rw-r--r-- | users/drashna/keyrecords/process_records.c | 5 | ||||
-rw-r--r-- | users/drashna/keyrecords/unicode.c | 7 |
2 files changed, 4 insertions, 8 deletions
diff --git a/users/drashna/keyrecords/process_records.c b/users/drashna/keyrecords/process_records.c index 012a57f7e..160a88021 100644 --- a/users/drashna/keyrecords/process_records.c +++ b/users/drashna/keyrecords/process_records.c | |||
@@ -10,7 +10,7 @@ | |||
10 | # include "autocorrection/autocorrection.h" | 10 | # include "autocorrection/autocorrection.h" |
11 | #endif | 11 | #endif |
12 | #ifdef __AVR__ | 12 | #ifdef __AVR__ |
13 | #include <avr/wdt.h> | 13 | # include <avr/wdt.h> |
14 | #endif | 14 | #endif |
15 | 15 | ||
16 | uint16_t copy_paste_timer; | 16 | uint16_t copy_paste_timer; |
@@ -36,7 +36,7 @@ __attribute__((weak)) bool process_record_secrets(uint16_t keycode, keyrecord_t | |||
36 | * @return true Continue processing keycode and send to host | 36 | * @return true Continue processing keycode and send to host |
37 | * @return false Stop process keycode and do not send to host | 37 | * @return false Stop process keycode and do not send to host |
38 | */ | 38 | */ |
39 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | 39 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { |
40 | // If console is enabled, it will print the matrix position and status of each key pressed | 40 | // If console is enabled, it will print the matrix position and status of each key pressed |
41 | #ifdef KEYLOGGER_ENABLE | 41 | #ifdef KEYLOGGER_ENABLE |
42 | uprintf("KL: kc: 0x%04X, col: %2u, row: %2u, pressed: %b, time: %5u, int: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); | 42 | uprintf("KL: kc: 0x%04X, col: %2u, row: %2u, pressed: %b, time: %5u, int: %b, count: %u\n", keycode, record->event.key.col, record->event.key.row, record->event.pressed, record->event.time, record->tap.interrupted, record->tap.count); |
@@ -234,7 +234,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *re | |||
234 | software_reset(); | 234 | software_reset(); |
235 | } | 235 | } |
236 | return false; | 236 | return false; |
237 | |||
238 | } | 237 | } |
239 | return true; | 238 | return true; |
240 | } | 239 | } |
diff --git a/users/drashna/keyrecords/unicode.c b/users/drashna/keyrecords/unicode.c index db2058e5d..5acd51da9 100644 --- a/users/drashna/keyrecords/unicode.c +++ b/users/drashna/keyrecords/unicode.c | |||
@@ -181,7 +181,6 @@ bool process_record_aussie(uint16_t keycode, keyrecord_t *record) { | |||
181 | bool process_record_zalgo(uint16_t keycode, keyrecord_t *record) { | 181 | bool process_record_zalgo(uint16_t keycode, keyrecord_t *record) { |
182 | if ((KC_A <= keycode) && (keycode <= KC_0)) { | 182 | if ((KC_A <= keycode) && (keycode <= KC_0)) { |
183 | if (record->event.pressed) { | 183 | if (record->event.pressed) { |
184 | |||
185 | tap_code16_nomods(keycode); | 184 | tap_code16_nomods(keycode); |
186 | 185 | ||
187 | int number = (rand() % (8 + 1 - 2)) + 2; | 186 | int number = (rand() % (8 + 1 - 2)) + 2; |
@@ -285,13 +284,11 @@ bool process_record_unicode(uint16_t keycode, keyrecord_t *record) { | |||
285 | } else if (typing_mode == KC_ZALGO) { | 284 | } else if (typing_mode == KC_ZALGO) { |
286 | return process_record_zalgo(keycode, record); | 285 | return process_record_zalgo(keycode, record); |
287 | } | 286 | } |
288 | return process_unicode_common(keycode, record); | 287 | return true; |
289 | } | 288 | } |
290 | 289 | ||
291 | /** | 290 | /** |
292 | * @brief Initialize the default unicode mode on firmware startu | 291 | * @brief Initialize the default unicode mode on firmware startu |
293 | * | 292 | * |
294 | */ | 293 | */ |
295 | void matrix_init_unicode(void) { | 294 | void matrix_init_unicode(void) { unicode_input_mode_init(); } |
296 | unicode_input_mode_init(); | ||
297 | } | ||