misc update

This commit is contained in:
Gatsby Van
2024-04-02 00:17:39 +08:00
parent f363d3afba
commit da1659a582
5 changed files with 102 additions and 103 deletions
+2 -2
View File
@@ -25,14 +25,14 @@ for key in ${!calMap[*]};do
cd $DST_DIR/$projName
# subtitite ID
sed -i'' "s/#define PHY_DEVICE_ID 0/#define PHY_DEVICE_ID $id/g"
sed -i'' "s/#define PHY_DEVICE_ID 0/#define PHY_DEVICE_ID 0x$id/g" ./config/app_config.h
# subtitute table
sed -i'' "/^const uint16_t antCalTable\[L1_FRAME_MAX_HOPS\]\[L1_ANT_NUM_CH\] =/{
:table
N
/\};/!b table
s/=.*\};/=\n\/\/Antenna-$key\n$calMap[$key]/
s/=.*\};/=\n\/\/Antenna-$key\n${calMap[$key]}/
}" ./networking/phy_layer/phy_antenna.c
cd $DST_DIR
done