Skip to content

Commit

Permalink
Fix calculation of number of app screens
Browse files Browse the repository at this point in the history
  • Loading branch information
mark9064 committed Nov 27, 2023
1 parent f3d4f04 commit 420bb4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/displayapp/screens/ApplicationList.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ namespace Pinetime {

static constexpr int appsPerScreen = 6;

// Increment this when more space is needed
static constexpr int nScreens = (UserAppTypes::Count / appsPerScreen) + 1;
static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);

ScreenList<nScreens> screens;
};
Expand Down

0 comments on commit 420bb4a

Please sign in to comment.