summaryrefslogtreecommitdiff
path: root/keyboards/gopolar/gg86/lib/wave.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/gopolar/gg86/lib/wave.h')
-rw-r--r--keyboards/gopolar/gg86/lib/wave.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/gopolar/gg86/lib/wave.h b/keyboards/gopolar/gg86/lib/wave.h
index 11a3198ab1..f4e5e5052c 100644
--- a/keyboards/gopolar/gg86/lib/wave.h
+++ b/keyboards/gopolar/gg86/lib/wave.h
@@ -69,7 +69,7 @@ void add_keylog(uint16_t keycode) {
keycode = 0;
}
- if (keycode < (sizeof(code_to_name) / sizeof(char))) {
+ if (keycode < ARRAY_SIZE(code_to_name)) {
char log_char = pgm_read_byte(&code_to_name[keycode]);
for (uint8_t j = 0; j < OLED_FONT_WIDTH; j++) {