altos: Make gcc happy with ao_telemetry_set_interval
authorKeith Packard <keithp@keithp.com>
Wed, 27 Jun 2012 06:15:54 +0000 (23:15 -0700)
committerKeith 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

index 9000a149347a9e6956aa25b4dfc3c4452cb095ae..b3ce8ba9325a3573ed93c3b641a6f7c317d5249d 100644 (file)
@@ -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