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:
innovaker
2020-10-25 11:32:28 +00:00
committed by Pete Johanson
parent a65295c2a7
commit d748d8a749
3 changed files with 8 additions and 7 deletions

View File

@@ -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;