From: Joey Castillo Date: Thu, 13 Mar 2025 00:56:46 +0000 (-0400) Subject: implement FORCE_DISPLAY_TYPE flag X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=845d50fb34034acf43e6b1906eb78c788f22d8e8;p=sensor-watch.git implement FORCE_DISPLAY_TYPE flag --- diff --git a/Makefile b/Makefile index a0d56d1..e1bf841 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,15 @@ ifeq ($(SENSOR), TEMPERATURE) DEFINES += -DTEMPERATURE_BOARD_INSTALLED endif +ifdef FORCE_DISPLAY_TYPE + ifeq ($(FORCE_DISPLAY_TYPE), CUSTOM) + DEFINES += -DFORCE_CUSTOM_LCD_TYPE + endif + ifeq ($(FORCE_DISPLAY_TYPE), CLASSIC) + DEFINES += -DFORCE_CLASSIC_LCD_TYPE + endif +endif + ifdef EMSCRIPTEN all: $(BUILD)/$(BIN).elf $(BUILD)/$(BIN).html $(BUILD)/$(BIN).html: $(OBJS)