aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glcd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/glcd.h b/glcd.h
index f075d28b..5fc6aa9b 100644
--- a/glcd.h
+++ b/glcd.h
@@ -7,8 +7,8 @@
#define SCREEN_WIDTH 320
#define SCREEN_HEIGHT 240
-#define PORTRAIT (orientation == portrait || orientation == portraitInv)
-#define LANDSCAPE (orientation == landscape || orientation == landscapeInv)
+#define PORTRAIT (lcdGetOrientation() == portrait || lcdGetOrientation() == portraitInv)
+#define LANDSCAPE (lcdGetOrientation() == landscape || lcdGetOrientation() == landscapeInv)
/* uncomment if no board.h file used
#define LCD_DATA_PORT GPIOE