summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/nicekey
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/nicekey')
-rw-r--r--keyboards/handwired/nicekey/keymaps/default/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/handwired/nicekey/keymaps/default/keymap.c b/keyboards/handwired/nicekey/keymaps/default/keymap.c
index d7539a5c17..a4391eaa30 100644
--- a/keyboards/handwired/nicekey/keymaps/default/keymap.c
+++ b/keyboards/handwired/nicekey/keymaps/default/keymap.c
@@ -116,7 +116,7 @@ PGM_P const sentences[] PROGMEM = {
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
- int sentences_size = sizeof(sentences) / sizeof(sentences[0]);
+ int sentences_size = ARRAY_SIZE(sentences);
int i = rand() % sentences_size;
switch (keycode) {