summaryrefslogtreecommitdiffstats
path: root/power-845.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-845.c')
-rw-r--r--power-845.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/power-845.c b/power-845.c
index b081915..3c464d9 100644
--- a/power-845.c
+++ b/power-845.c
@@ -198,7 +198,7 @@ int power_hint_override(power_hint_t hint, void* data) {
case POWER_HINT_INTERACTION: {
int resources[] = {0x40800100, 0x514};
int duration = 100;
- interaction(duration, sizeof(resources) / sizeof(resources[0]), resources);
+ interaction(duration, ARRAY_SIZE(resources), resources);
ret_val = HINT_HANDLED;
} break;
default: