Rover: fix compile warnings for unused functions

This commit is contained in:
Tom Pittenger 2015-04-24 14:09:05 +09:00 committed by Randy Mackay
parent b57437042e
commit e867b148f5
2 changed files with 4 additions and 4 deletions

View File

@ -511,7 +511,7 @@ static const AP_Scheduler::Task scheduler_tasks[] PROGMEM = {
{ update_notify, 1, 300 },
{ one_second_loop, 50, 3000 },
#if FRSKY_TELEM_ENABLED == ENABLED
{ telemetry_send, 10, 100 }
{ frsky_telemetry_send, 10, 100 }
#endif
};

View File

@ -500,9 +500,9 @@ static bool should_log(uint32_t mask)
/*
send FrSky telemetry. Should be called at 5Hz by scheduler
*/
static void telemetry_send(void)
{
#if FRSKY_TELEM_ENABLED == ENABLED
static void frsky_telemetry_send(void)
{
frsky_telemetry.send_frames((uint8_t)control_mode);
#endif
}
#endif