mirror of
https://github.com/firewalkwithm3/Sensor-Watch.git
synced 2024-11-22 19:20:30 +08:00
add new COLOR flag
This commit is contained in:
parent
7fd51caa25
commit
9cd39cd3e3
6
make.mk
6
make.mk
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue