mirror of
https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git
synced 2024-11-24 14:50:09 +00:00
Ensure autogain respects READSB_AUTOGAIN_INITIAL_GAIN
at first run
This commit is contained in:
parent
601a135015
commit
b6efc33955
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ if [[ -n "$READSB_GAIN" ]]; then
|
||||||
if [[ "${READSB_GAIN,,}" == "autogain" ]] && [[ -f /var/globe_history/autogain/gain ]]; then
|
if [[ "${READSB_GAIN,,}" == "autogain" ]] && [[ -f /var/globe_history/autogain/gain ]]; then
|
||||||
read -r gain < /var/globe_history/autogain/gain
|
read -r gain < /var/globe_history/autogain/gain
|
||||||
else
|
else
|
||||||
[[ "${READSB_GAIN,,}" == "autogain" ]] && gain="49.6" || gain="${READSB_GAIN}"
|
[[ "${READSB_GAIN,,}" == "autogain" ]] && gain="${READSB_AUTOGAIN_INITIAL_GAIN:-49.6}" || gain="${READSB_GAIN}"
|
||||||
fi
|
fi
|
||||||
READSB_CMD+=("--gain=$gain")
|
READSB_CMD+=("--gain=$gain")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue