summaryrefslogtreecommitdiffstats
path: root/users/drashna/keyrecords/unicode.c
diff options
context:
space:
mode:
Diffstat (limited to 'users/drashna/keyrecords/unicode.c')
-rw-r--r--users/drashna/keyrecords/unicode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/users/drashna/keyrecords/unicode.c b/users/drashna/keyrecords/unicode.c
index b3fc71cb09..753fca3231 100644
--- a/users/drashna/keyrecords/unicode.c
+++ b/users/drashna/keyrecords/unicode.c
@@ -43,7 +43,7 @@ typedef uint32_t (*translator_function_t)(bool is_shifted, uint32_t keycode);
static inline uint32_t translator_name(bool is_shifted, uint32_t keycode) { \
static const uint32_t translation[] = {__VA_ARGS__}; \
uint32_t ret = keycode; \
- if ((keycode - KC_A) < (sizeof(translation) / sizeof(uint32_t))) { \
+ if ((keycode - KC_A) < ARRAY_SIZE(translation)) { \
ret = translation[keycode - KC_A]; \
} \
return ret; \
@@ -193,9 +193,9 @@ bool process_record_aussie(uint16_t keycode, keyrecord_t *record) {
tap_code16_nomods(KC_HOME);
return false;
} else if (record->event.pressed && keycode == KC_BSPC) {
- tap_code16_nomods(KC_DELT);
+ tap_code16_nomods(KC_DEL);
return false;
- } else if (record->event.pressed && keycode == KC_DELT) {
+ } else if (record->event.pressed && keycode == KC_DEL) {
tap_code16_nomods(KC_BSPC);
return false;
} else if (record->event.pressed && keycode == KC_QUOT) {