Don't allow building without setting board color.

Fixes: #288
This commit is contained in:
Wesley Aptekar-Cassels 2023-09-28 18:29:32 -04:00
parent 5c94111ea2
commit c28ba6ef0b

View file

@ -207,6 +207,10 @@ ifeq ($(LED), BLUE)
CFLAGS += -DWATCH_IS_BLUE_BOARD
endif
ifndef COLOR
$(error Set the COLOR variable to RED, BLUE, or GREEN depending on what board you have.)
endif
ifeq ($(COLOR), BLUE)
CFLAGS += -DWATCH_IS_BLUE_BOARD
endif