Skip to content

Commit

Permalink
remove accidental debug print (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf authored Sep 22, 2024
1 parent 38b380d commit b81c483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/autogain
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function collect_gain_values() {
while IFS= read -r rssi <&3; do
(( total_msg++ )) || true
(( ${rssi##0} > cutoff )) && (( strong_msg++ )) || true
s6wrap --quiet --timestamps --prepend autogain echo "sample count: $total_msg"
# read messages until we have least READSB_AUTOGAIN_MIN_SAMPLES, and the max time is exhausted
# in other words - even if the max time expires, continue collecting messages until at least the minimum has been reached
if (( total_msg >= READSB_AUTOGAIN_MIN_SAMPLES )) && (( $(date +%s) > starttime + $1 )); then
break
Expand Down

0 comments on commit b81c483

Please sign in to comment.