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;
|
static constexpr int appsPerScreen = 6;
|
||||||
|
|
||||||
// Increment this when more space is needed
|
static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
|
||||||
static constexpr int nScreens = (UserAppTypes::Count / appsPerScreen) + 1;
|
|
||||||
|
|
||||||
ScreenList<nScreens> screens;
|
ScreenList<nScreens> screens;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user