diff options
| author | mark9064 <30447455+mark9064@users.noreply.github.com> | 2023-11-27 01:22:19 +0000 |
|---|---|---|
| committer | JF <JF002@users.noreply.github.com> | 2023-12-09 21:20:21 +0100 |
| commit | 41a4813c8bd9770013f30d5a31fcc3384e4cd3ab (patch) | |
| tree | fb2644781fd71855ecfc800ff1a0f2306b4e457a /src | |
| parent | 42fcb99b389139c974742ad807a5a6da61231a5c (diff) | |
Fix calculation of number of app screens
Diffstat (limited to 'src')
| -rw-r--r-- | src/displayapp/screens/ApplicationList.h | 3 |
1 files changed, 1 insertions, 2 deletions
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<nScreens> screens; }; |
