Skip to content

Commit 54b4750

Browse files
mark9064JF002
authored andcommitted
Apply suggestion
1 parent 41a4813 commit 54b4750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/displayapp/screens/ApplicationList.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace Pinetime {
3838

3939
static constexpr int appsPerScreen = 6;
4040

41-
static constexpr int nScreens = CEIL_DIV(UserAppTypes::Count, appsPerScreen);
41+
static constexpr int nScreens = (UserAppTypes::Count - 1) / appsPerScreen + 1;
4242

4343
ScreenList<nScreens> screens;
4444
};

0 commit comments

Comments
 (0)