This eliminates the case where much of the flight state wasn't
reported if the tracker or receiver weren't moving.
Signed-off-by: Keith Packard <keithp@keithp.com>
return true;
}
- if (last_tell_mode == TELL_MODE_FLIGHT) {
- if (time_since_speak() < 10 * 1000 && last_flight_tell == TELL_FLIGHT_TRACK)
+ if (last_tell_mode == TELL_MODE_FLIGHT && last_flight_tell == TELL_FLIGHT_TRACK) {
+ if (time_since_speak() < 10 * 1000)
return false;
if (!target_moved(state) && !receiver_moved(receiver))
return false;