altos: Reduce configuration data telemetry to once per 5 seconds
authorKeith Packard <keithp@keithp.com>
Sat, 5 Jul 2014 06:26:57 +0000 (23:26 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 5 Jul 2014 07:38:09 +0000 (00:38 -0700)
This data is constant, so we don't need to send it very often. Once
every five seconds should be plenty.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_telemetry.c

index 9f778b0905b8448e51d58a321ea21cc186d67a4d..6fb30069ee5be977a6112b2058cf3753c5111f7a 100644 (file)
@@ -521,7 +521,7 @@ ao_telemetry_set_interval(uint16_t interval)
        ao_telemetry_companion_cur = cur;
 #endif
 
-       ao_telemetry_config_max = AO_SEC_TO_TICKS(1) / interval;
+       ao_telemetry_config_max = AO_SEC_TO_TICKS(5) / interval;
 #if HAS_COMPANION
        if (ao_telemetry_config_max > cur)
                cur++;