mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-29 13:30:33 +02:00
* Re-arrange variable definitions to avoid including quantum.h from rgblight.c * Fix a compilation error when trying to run make test:all
This commit is contained in:
+3
-2
@@ -190,14 +190,15 @@ static uint16_t scs_timer[2] = {0, 0};
|
||||
*/
|
||||
static bool grave_esc_was_shifted = false;
|
||||
|
||||
uint8_t typing_speed = 0;
|
||||
bool process_record_quantum(keyrecord_t *record) {
|
||||
|
||||
/* This gets the keycode from the key pressed */
|
||||
keypos_t key = record->event.key;
|
||||
uint16_t keycode;
|
||||
|
||||
if (typing_speed < TYPING_SPEED_MAX_VALUE) typing_speed += 1;
|
||||
#ifdef RGBLIGHT_ENABLE
|
||||
if (typing_speed < TYPING_SPEED_MAX_VALUE) typing_speed += 1;
|
||||
#endif
|
||||
|
||||
#if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
|
||||
/* TODO: Use store_or_get_action() or a similar function. */
|
||||
|
||||
Reference in New Issue
Block a user