Skip to content

Commit

Permalink
display.cpp: check display type setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaus K Wilting committed Jun 2, 2020
1 parent 014bae0 commit 46cc027
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 46cc027

Please sign in to comment.