]> git.earman.xyz Git - sensor-watch.git/commitdiff
implement FORCE_DISPLAY_TYPE flag
authorJoey Castillo <joeycastillo@utexas.edu>
Thu, 13 Mar 2025 00:56:46 +0000 (20:56 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Thu, 13 Mar 2025 00:56:46 +0000 (20:56 -0400)
Makefile

index a0d56d1a89b200c25d92e3c3f76b5274a71400ed..e1bf84147584407cfa056d22d64e4170cd138d61 100644 (file)
--- 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)