diff --git a/rootfs/etc/s6-overlay/scripts/readsb b/rootfs/etc/s6-overlay/scripts/readsb index cde6288..12e2132 100755 --- a/rootfs/etc/s6-overlay/scripts/readsb +++ b/rootfs/etc/s6-overlay/scripts/readsb @@ -252,7 +252,7 @@ if [[ -n "$READSB_GAIN" ]]; then read -r gain < /var/globe_history/autogain/gain READSB_CMD+=("--gain=$gain") elif [[ -n "$READSB_GAIN" ]]; then - [[ "${READSB_GAIN,,}" == "autogain" ]] && gain="49.6" || gain="${READSB_GAIN}" + [[ "${READSB_GAIN,,}" == "autogain" ]] && gain="${READSB_AUTOGAIN_INITIAL_GAIN:-49.6}" || gain="${READSB_GAIN}" READSB_CMD+=("--gain=$gain") fi fi