Apply suggestion
This commit is contained in:
parent
41a4813c8b
commit
54b4750c6f
|
@ -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<nScreens> screens;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue