altos: Allow setting telemetry interval to zero without crashing
authorKeith Packard <keithp@keithp.com>
Fri, 28 Oct 2022 00:43:08 +0000 (17:43 -0700)
committerKeith Packard <keithp@keithp.com>
Fri, 28 Oct 2022 00:44:59 +0000 (17:44 -0700)
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 <keithp@keithp.com>

No differences found