Fix display header include for heltec_v4 when DISPLAY_CLASS is set directly

When DISPLAY_CLASS is defined via build flags but HELTEC_LORA_V4_OLED
or HELTEC_LORA_V4_TFT flags aren't set, include SSD1306Display.h as
fallback. This fixes compilation errors for environments like
heltec_v4_repeater_observer_mqtt that extend Heltec_lora32_v4 directly
and set DISPLAY_CLASS=SSD1306Display.
This commit is contained in:
agessaman committed 2026-01-27 12:52:09 -08:00
1 parent d96c900f10
commit bb27cdedb6
1 file changed
+5
+5
View File
@@ -13,6 +13,11 @@
#include <helpers/ui/SSD1306Display.h>
#elif defined(HELTEC_LORA_V4_TFT)
#include <helpers/ui/ST7789LCDDisplay.h>
#else
// If DISPLAY_CLASS is defined but OLED/TFT flags aren't set,
// assume SSD1306Display (most common case)
// This handles cases where DISPLAY_CLASS is set directly in build flags
#include <helpers/ui/SSD1306Display.h>
#endif
#include <helpers/ui/MomentaryButton.h>
#endif