Fix calculation of number of app screens

This commit is contained in:
mark9064 2023-11-27 01:22:19 +00:00 committed by JF
parent 42fcb99b38
commit 41a4813c8b

View file

@ -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;
}; };