misc update
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user