mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
px4fmu_common rcS: fix MAVLINK_F test
fixes a 'test: syntax error' message on startup. There were two problems: - the expansion of $MAVLINK_F lead to multiple arguments in the test when the variable contained spaces. Fixed with "" - the x prevents interpretation as a unary expression, if $MAVLINK_F starts with a - character (in that case the expansion would be: if [ -r 1200 ... and nsh interprets - as unary expression)
This commit is contained in:
@@ -511,7 +511,7 @@ then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $MAVLINK_F == "none" ]
|
if [ "x$MAVLINK_F" == xnone ]
|
||||||
then
|
then
|
||||||
else
|
else
|
||||||
mavlink start $MAVLINK_F
|
mavlink start $MAVLINK_F
|
||||||
|
|||||||
Reference in New Issue
Block a user