Merge pull request #292 from WesleyAC/error-when-no-color

Don't allow building without setting board color.
This commit is contained in:
Jose Castillo authored and GitHub committed 2023-11-17 12:31:40 -05:00
commit 0263d9e0c7
2 files changed
+7

No files matched your search

+3
View File
@@ -6,6 +6,9 @@ on:
branches-ignore:
- gh-pages
env:
COLOR: BLUE
jobs:
build:
container:
+4
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