diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h index f8a6be66..b3a477ae 100644 --- a/src/displayapp/screens/ApplicationList.h +++ b/src/displayapp/screens/ApplicationList.h @@ -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 screens; };