Fix calculation of number of app screens
This commit is contained in:
parent
42fcb99b38
commit
41a4813c8b
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue