gnss-reset: fixed error checking when setting reset pin
BugzID: 72787 Signed-off-by: Marc Mattmueller <marc.mattmueller@netmodule.com>
This commit is contained in:
parent
e367bcf0c1
commit
c3e5b9af5a
|
|
@ -103,7 +103,7 @@ fi
|
|||
|
||||
echo "$SCRIPT_NAME: setting $GNSS_RST=$RST_STATE($RST_VALUE)..."
|
||||
echo $RST_VALUE > $GNSS_RST
|
||||
if [[ "$?" != 0 ]]; then
|
||||
if [[ "$?" != "0" ]]; then
|
||||
echo "ERROR $SCRIPT_NAME: Could not set $RST_STATE ($RST_VALUE) in $GNSS_RST"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue