From 46cc027ee45a0e0ae65b962c9eedd63d015b3591 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Tue, 2 Jun 2020 16:34:53 +0200 Subject: [PATCH] display.cpp: check display type setting --- src/display.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display.cpp b/src/display.cpp index 134962a3..162fa6b3 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -49,10 +49,14 @@ static int dp_row = 0, dp_col = 0, dp_font = 0; QRCode qrcode; +#ifdef HAS_DISPLAY #if (HAS_DISPLAY) == 1 OBDISP ssoled; #elif (HAS_DISPLAY) == 2 TFT_eSPI tft = TFT_eSPI(); +#else +#error Unknown display type specified in hal file +#endif #endif void dp_setup(int contrast) {