summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r--apps/screen_access.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h
index 5b30cb0aa7..c167708fbf 100644
--- a/apps/screen_access.h
+++ b/apps/screen_access.h
@@ -36,6 +36,12 @@ enum screen_type {
#define NB_SCREENS 1
#endif
+#if NB_SCREENS == 1
+#define FOR_NB_SCREENS(i) i = 0;
+#else
+#define FOR_NB_SCREENS(i) for(i = 0; i < NB_SCREENS; i++)
+#endif
+
#ifdef HAVE_LCD_CHARCELLS
#define MAX_LINES_ON_SCREEN 2
#endif