diff --git a/rootfs/usr/local/bin/autogain1090 b/rootfs/usr/local/bin/autogain1090 index e9ef28d..81d17d8 100755 --- a/rootfs/usr/local/bin/autogain1090 +++ b/rootfs/usr/local/bin/autogain1090 @@ -149,7 +149,7 @@ fi gain="${gain_array[$gain_index]}" -if (( $gain_index < 0 )); then +if (( gain_index < 0 )); then echo "Could have used some lower gain, but gain already at minimum! ($reason)" exit 0 fi