projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c4036bf
)
altos: Make gcc happy with ao_telemetry_set_interval
author
Keith Packard
<keithp@keithp.com>
Wed, 27 Jun 2012 06:15:54 +0000
(23:15 -0700)
committer
Keith Packard
<keithp@keithp.com>
Wed, 27 Jun 2012 06:15:54 +0000
(23:15 -0700)
Using unsigned locals made GCC sad as it was compared with a signed value.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_telemetry.c
patch
|
blob
|
history
diff --git
a/src/core/ao_telemetry.c
b/src/core/ao_telemetry.c
index 9000a149347a9e6956aa25b4dfc3c4452cb095ae..b3ce8ba9325a3573ed93c3b641a6f7c317d5249d 100644
(file)
--- a/
src/core/ao_telemetry.c
+++ b/
src/core/ao_telemetry.c
@@
-333,7
+333,7
@@
ao_telemetry(void)
void
ao_telemetry_set_interval(uint16_t interval)
{
-
uint8_t
cur = 0;
+
int8_t
cur = 0;
ao_telemetry_interval = interval;
#if AO_SEND_MEGA