Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vacabun committed Jan 17, 2024
1 parent b11d70d commit 000410c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ node:
echo "CONFIG_DEVICE_ADDRESS=1" >> $(CURDIR)/prj.conf
west build
ds_twr:
if grep -q 'CONFIG_SS_TWR=y' $(CURDIR)/prj.conf; then \
sed -i 's/CONFIG_SS_TWR=y/CONFIG_DS_TWR=y/g' $(CURDIR)/prj.conf; \
if grep -q 'CONFIG_SS_TWR=y' $(CURDIR)/prj.conf.template; then \
sed -i 's/CONFIG_SS_TWR=y/CONFIG_DS_TWR=y/g' $(CURDIR)/prj.conf.template; \
fi
ss_twr:
if grep -q 'CONFIG_DS_TWR=y' $(CURDIR)/prj.conf; then \
sed -i 's/CONFIG_DS_TWR=y/CONFIG_SS_TWR=y/g' $(CURDIR)/prj.conf; \
if grep -q 'CONFIG_DS_TWR=y' $(CURDIR)/prj.conf.template; then \
sed -i 's/CONFIG_DS_TWR=y/CONFIG_SS_TWR=y/g' $(CURDIR)/prj.conf.template; \
fi
test:
cp $(CURDIR)/prj.conf.template $(CURDIR)/prj.conf
Expand Down

0 comments on commit 000410c

Please sign in to comment.