Skip to content

Commit

Permalink
Ensure autogain respects READSB_AUTOGAIN_INITIAL_GAIN at first run
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t authored Oct 26, 2023
1 parent 601a135 commit b6efc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/readsb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ if [[ -n "$READSB_GAIN" ]]; then
if [[ "${READSB_GAIN,,}" == "autogain" ]] && [[ -f /var/globe_history/autogain/gain ]]; then
read -r gain < /var/globe_history/autogain/gain
else
[[ "${READSB_GAIN,,}" == "autogain" ]] && gain="49.6" || gain="${READSB_GAIN}"
[[ "${READSB_GAIN,,}" == "autogain" ]] && gain="${READSB_AUTOGAIN_INITIAL_GAIN:-49.6}" || gain="${READSB_GAIN}"
fi
READSB_CMD+=("--gain=$gain")
fi
Expand Down

0 comments on commit b6efc33

Please sign in to comment.