summaryrefslogtreecommitdiffstats
path: root/power-8226.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-8226.c')
-rw-r--r--power-8226.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power-8226.c b/power-8226.c
index 310a3db..7ac90ea 100644
--- a/power-8226.c
+++ b/power-8226.c
@@ -53,7 +53,7 @@ int power_hint_override(power_hint_t hint, void* data) {
int resources[] = {0x702, 0x20B, 0x30B};
int duration = 3000;
- interaction(duration, sizeof(resources) / sizeof(resources[0]), resources);
+ interaction(duration, ARRAY_SIZE(resources), resources);
return HINT_HANDLED;
}
}