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 e170985
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions make.mk
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ SRCS += \

endif

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

ifeq ($(LED), RED)
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 e170985

Please sign in to comment.