InfiniTime.git

commit 41a4813c8bd9770013f30d5a31fcc3384e4cd3ab

Author: mark9064 <30447455+mark9064@users.noreply.github.com>

Fix calculation of number of app screens

 src/displayapp/screens/ApplicationList.h | 3 +--


diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h
index f8a6be66eea79819eed9b1f4f682610ab7c8771c..b3a477ae5120ca8861a62b3b85dbe289e8dfe79f 100644
--- a/src/displayapp/screens/ApplicationList.h
+++ b/src/displayapp/screens/ApplicationList.h
@@ -38,8 +38,7 @@         std::array apps;
 
         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;
       };