diff options
author | joeycastillo <joeycastillo@utexas.edu> | 2023-09-13 11:39:58 -0400 |
---|---|---|
committer | joeycastillo <joeycastillo@utexas.edu> | 2023-09-13 11:40:40 -0400 |
commit | 9cd39cd3e37121502a5d58f8a58bd37331be378e (patch) | |
tree | 1cc5c5b66421e338646df832ccc96d2e141cf552 | |
parent | 7fd51caa25681c43173be77075c268cede87efb6 (diff) | |
download | Sensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.tar.gz Sensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.tar.bz2 Sensor-Watch-9cd39cd3e37121502a5d58f8a58bd37331be378e.zip |
add new COLOR flag
-rw-r--r-- | make.mk | 6 | ||||
-rwxr-xr-x | movement/make/make_alternate_fw.sh | 2 |
2 files changed, 6 insertions, 2 deletions
@@ -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 |