From 2723fd0799e3d8481f4358180eb5bd13f5bbbbaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20St=C3=A4ck?= Date: Mon, 3 Sep 2018 15:03:21 +0200 Subject: [PATCH] Check for exact display type instead of just height --- NuEVI.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NuEVI.ino b/NuEVI.ino index 96cfc9a..c2bc207 100644 --- a/NuEVI.ino +++ b/NuEVI.ino @@ -322,8 +322,8 @@ static const unsigned char PROGMEM nuevi_logo_bmp[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -#if (SSD1306_LCDHEIGHT != 64) -#error("Height incorrect, please fix Adafruit_SSD1306.h!"); +#ifndef SSD1306_128_64 +#error("Incorrect display type, please fix Adafruit_SSD1306.h!"); #endif