InfiniTime.git

commit 54b4750c6fd27ddde4eb48eb27b5d78e1818c3bc

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

Apply suggestion

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


diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h
index b3a477ae5120ca8861a62b3b85dbe289e8dfe79f..77e1d39e9d6d429c1211e32f8f68f325cb7a863b 100644
--- a/src/displayapp/screens/ApplicationList.h
+++ b/src/displayapp/screens/ApplicationList.h
@@ -38,7 +38,7 @@         std::array apps;
 
         static constexpr int appsPerScreen = 6;
 
-        static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
+        static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1;
 
         ScreenList<nScreens> screens;
       };