diff options
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/oryx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/oryx.c b/quantum/oryx.c index f457739375..a408cff3ce 100644 --- a/quantum/oryx.c +++ b/quantum/oryx.c @@ -144,7 +144,8 @@ keypos_t get_random_keypos(void) { uint8_t row = rand() % MATRIX_ROWS; keypos_t pos = {.col = col, .row = row}; - if (keymap_key_to_keycode(0, pos) != KC_NO) { + uint16_t keycode = keymap_key_to_keycode(0, pos); + if (keycode >= KC_A && keycode <= KC_SLASH) { return pos; } else { return get_random_keypos(); |