automatically detect temperature sensor

This commit is contained in:
Joey Castillo
2025-05-17 10:23:38 -04:00
parent 9fd174e453
commit 80cbb0fe30
6 changed files with 57 additions and 16 deletions

View File

@ -12,9 +12,6 @@ GOSSAMER_PATH=gossamer
# If you need to force a specific display, set this to the type you want, CLASSIC or CUSTOM
FORCE_DISPLAY_TYPE=CLASSIC
# Which sensor board?
SENSOR=NONE
# End of user configurable options.
# Support USB features?
@ -32,10 +29,6 @@ ifndef BOARD
$(error Build failed: BOARD not defined. Use one of the four options below, depending on your hardware:$n$n make BOARD=sensorwatch_red$n make BOARD=sensorwatch_green$n make BOARD=sensorwatch_blue$n make BOARD=sensorwatch_pro$n$n)
endif
ifeq ($(SENSOR), TEMPERATURE)
DEFINES += -DTEMPERATURE_BOARD_INSTALLED
endif
ifdef FORCE_DISPLAY_TYPE
ifeq ($(FORCE_DISPLAY_TYPE), CUSTOM)
DEFINES += -DFORCE_CUSTOM_LCD_TYPE