Skip to content

Commit

Permalink
Merge pull request #16 from rpatel3001/repeat_scanner
Browse files Browse the repository at this point in the history
repeat scan if no messages
  • Loading branch information
fredclausen committed Feb 7, 2024
2 parents bc2d2b2 + 5ff420b commit 35ea5b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rootfs/etc/s6-overlay/scripts/dumphfdl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ else
fi
((i += 1))
done

if ((${score[$k]} == 0)); then
"${s6wrap[@]}" echo "No messages, repeating scan."
exit
fi

"${s6wrap[@]}" echo --------
"${s6wrap[@]}" echo "${fname[$k]} wins"
"${s6wrap[@]}" printf "%-20s%-15s%-25s%-26s%-18s\n" "${fname[$k]}" "score: ${score[$k]}" "stationMessages: ${stationMessages[$k]}" "aircraftMessages: ${aircraftMessages[$k]}" "positions: ${positions[$k]}"
Expand Down

0 comments on commit 35ea5b8

Please sign in to comment.