From 54b4750c6fd27ddde4eb48eb27b5d78e1818c3bc Mon Sep 17 00:00:00 2001 From: mark9064 <30447455+mark9064@users.noreply.github.com> Date: Mon, 27 Nov 2023 18:17:24 +0000 Subject: [PATCH] Apply suggestion --- src/displayapp/screens/ApplicationList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; };