display.cpp: check display type setting

This commit is contained in:
Klaus K Wilting 2020-06-02 16:34:53 +02:00
parent 014bae059e
commit 46cc027ee4

View File

@ -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) {