1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-12-17 18:10:12 +00:00

no_movement_required default / ensure > check interval

This commit is contained in:
Matthias Wirth 2024-05-26 23:26:12 +02:00
parent e1280accdd
commit 342d3fcd75

View file

@ -95,7 +95,10 @@ if grep -qs "gpsd" <<< "$ULTRAFEEDER_CONFIG" || grep -qs "gpsd" <<< "$ULTRAFEEDE
old_lon="$new_lon"
# in seconds
no_movement_required=19
no_movement_required=90
if (( no_movement_required < "${GPSD_CHECK_INTERVAL:-30}" )); then
no_movement_required="${GPSD_CHECK_INTERVAL:-30}"
fi
# set no_movement to a number higher than the required time of no movement
# this way on startup there is no bogus message printed about starting mlat-clients with a new location
no_movement=$(( 2 * no_movement_required ))