mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
refactor: Replace superseded key names
Replace deprecated key names (LCTL, NUM_0, NUM_1). Replace abbreviated names with fully qualified names (LCTL, RGUI, NUM_0, NUM_1). Follow-up to #21.
This commit is contained in:
@@ -572,11 +572,11 @@ bool zmk_ble_handle_key_user(struct zmk_key_event *key_event) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (key < NUM_1 || key > NUM_0) {
|
||||
if (key < NUMBER_1 || key > NUMBER_0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
u32_t val = (key == NUM_0) ? 0 : (key - NUM_1 + 1);
|
||||
u32_t val = (key == NUMBER_0) ? 0 : (key - NUMBER_1 + 1);
|
||||
|
||||
passkey_entries[passkey_digit++] = val;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user