From: Keith Packard Date: Fri, 28 Oct 2022 00:43:08 +0000 (-0700) Subject: altos: Allow setting telemetry interval to zero without crashing X-Git-Tag: 1.9.12~1^2~19 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a81f5a78172663376ad9687976b9821a755d5e31;hp=a81f5a78172663376ad9687976b9821a755d5e31;p=fw%2Faltos altos: Allow setting telemetry interval to zero without crashing Setting telemetry interval to zero means disable telemetry, but the code was using the zero value to compute a bunch of packet delays, which involved dividing by the interval value causing a crash when it was zero. Skip those subsequent computations as they won't be used anyways. Signed-off-by: Keith Packard ---