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:
Marc Mattmueller 2021-06-03 09:24:08 +02:00
parent e367bcf0c1
commit c3e5b9af5a
1 changed files with 1 additions and 1 deletions

View File

@ -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