Skip to content

Commit

Permalink
add new COLOR flag
Browse files Browse the repository at this point in the history
  • Loading branch information
joeycastillo committed Sep 13, 2023
1 parent 7fd51ca commit 9cd39cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion make.mk
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ ifeq ($(LED), BLUE)
CFLAGS += -DWATCH_IS_BLUE_BOARD
endif

ifeq ($(LED), RED)
ifeq ($(COLOR), BLUE)
CFLAGS += -DWATCH_IS_BLUE_BOARD
endif

ifeq ($(COLOR), RED)
CFLAGS += -DWATCH_INVERT_LED_POLARITY
CFLAGS += -DNO_FREQCORR
endif
Expand Down
2 changes: 1 addition & 1 deletion movement/make/make_alternate_fw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ do
do
COLOR=$(echo "$color" | tr '[:lower:]' '[:upper:]')
make clean
make LED=$COLOR FIRMWARE=$VARIANT
make COLOR=$COLOR FIRMWARE=$VARIANT
mv "build/watch.uf2" "$fw_dir/$variant-$color.uf2"
done
rm -rf ./build-sim
Expand Down

0 comments on commit 9cd39cd

Please sign in to comment.