diff options
author | Keith Packard <keithp@keithp.com> | 2011-09-21 11:39:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-09-21 11:45:05 -0700 |
commit | c8a00bb9ccdf0d4257f037c2bf996ce5e6b0b0c0 (patch) | |
tree | cef91c9361b9455078ee4393281333c0ae6af784 /src/core/ao_telemetry.c | |
parent | abf17522c206b465375b73a004a6d67bfa714ba3 (diff) |
altos: Pre-compute RDF packet len at compile time
Instead of computing the RDF packet len at run time, which takes a
pile of code space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao_telemetry.c')
-rw-r--r-- | src/core/ao_telemetry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao_telemetry.c b/src/core/ao_telemetry.c index de669ce1..c2707e7d 100644 --- a/src/core/ao_telemetry.c +++ b/src/core/ao_telemetry.c @@ -235,7 +235,7 @@ ao_telemetry(void) (int16_t) (ao_time() - ao_rdf_time) >= 0) { ao_rdf_time = ao_time() + AO_RDF_INTERVAL_TICKS; - ao_radio_rdf(AO_RDF_LENGTH_MS); + ao_radio_rdf(AO_MS_TO_RDF_LEN(AO_RDF_LENGTH_MS)); } #endif time += ao_telemetry_interval; |