Skip to content

Commit

Permalink
Use existing macro instead of re-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Master92 committed Nov 13, 2024
1 parent ce26c7b commit 26d7fe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/ui_main_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static page_pack_t *page_packs[] = {
&pp_sleep,
};

#define PAGE_COUNT (sizeof(page_packs) / sizeof(page_packs[0]))
#define PAGE_COUNT (ARRAY_SIZE(page_packs))

static page_pack_t* post_bootup_actions[PAGE_COUNT + 1];

Expand Down

0 comments on commit 26d7fe9

Please sign in to comment.