summaryrefslogtreecommitdiff
path: root/app/src/ble.c
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-10-25 11:32:28 +0000
committerPete Johanson <peter@peterjohanson.com>2020-11-03 23:50:54 -0500
commitd748d8a7496ea436a7e643245dbefb7b9c99d0cb (patch)
treeab7620ac20c205de5a5b158b6e8ceceb617a52f0 /app/src/ble.c
parenta65295c2a7b029f05155e30a53f365644c0ecc3c (diff)
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.
Diffstat (limited to 'app/src/ble.c')
-rw-r--r--app/src/ble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/ble.c b/app/src/ble.c
index f3962ae..1ab61d0 100644
--- a/app/src/ble.c
+++ b/app/src/ble.c
@@ -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;