summaryrefslogtreecommitdiff
path: root/keyboards/gboards/butterstick/sten.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/gboards/butterstick/sten.c')
-rw-r--r--keyboards/gboards/butterstick/sten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/gboards/butterstick/sten.c b/keyboards/gboards/butterstick/sten.c
index 197abaf92f..8820127848 100644
--- a/keyboards/gboards/butterstick/sten.c
+++ b/keyboards/gboards/butterstick/sten.c
@@ -21,7 +21,7 @@ uint32_t tChord = 0; // Protects state of cChord
#ifndef STENOLAYERS
uint32_t stenoLayers[] = { PWR };
-size_t stenoLayerCount = sizeof(stenoLayers)/sizeof(stenoLayers[0]);
+size_t stenoLayerCount = ARRAY_SIZE(stenoLayers);
#endif
// Mode state