diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h index b3a477ae..77e1d39e 100644 --- a/src/displayapp/screens/ApplicationList.h +++ b/src/displayapp/screens/ApplicationList.h @@ -38,7 +38,7 @@ namespace Pinetime { static constexpr int appsPerScreen = 6; - static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen); + static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1; ScreenList screens; };