summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/myskeeb
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/myskeeb')
-rw-r--r--keyboards/handwired/myskeeb/oled.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/handwired/myskeeb/oled.c b/keyboards/handwired/myskeeb/oled.c
index 081ca8395a..3f43590b8e 100644
--- a/keyboards/handwired/myskeeb/oled.c
+++ b/keyboards/handwired/myskeeb/oled.c
@@ -183,7 +183,7 @@ void add_keylog(uint16_t keycode) {
keylog_str[i] = keylog_str[i - 1];
}
- if (keycode < (sizeof(code_to_name) / sizeof(char))) {
+ if (keycode < ARRAY_SIZE(code_to_name)) {
keylog_str[0] = pgm_read_byte(&code_to_name[keycode]);
}
}