summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoeycastillo <joeycastillo@utexas.edu>2023-09-13 11:39:58 -0400
committerjoeycastillo <joeycastillo@utexas.edu>2023-09-13 11:40:40 -0400
commit9cd39cd3e37121502a5d58f8a58bd37331be378e (patch)
tree1cc5c5b66421e338646df832ccc96d2e141cf552
parent7fd51caa25681c43173be77075c268cede87efb6 (diff)
downloadSensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.tar.gz
Sensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.tar.bz2
Sensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.zip
add new COLOR flag
-rw-r--r--make.mk6
-rwxr-xr-xmovement/make/make_alternate_fw.sh2
2 files changed, 6 insertions, 2 deletions
diff --git a/make.mk b/make.mk
index bf61708c..a83108bd 100644
--- a/make.mk
+++ b/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
diff --git a/movement/make/make_alternate_fw.sh b/movement/make/make_alternate_fw.sh
index d1ce7673..24d9e63a 100755
--- a/movement/make/make_alternate_fw.sh
+++ b/movement/make/make_alternate_fw.sh
@@ -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