Copter: correct compilation when rally disabled

This commit is contained in:
Peter Barker 2017-01-03 10:50:17 +11:00 committed by Randy Mackay
parent cf4be25d61
commit d3e331e1f2
2 changed files with 6 additions and 3 deletions

View File

@ -923,7 +923,9 @@ void Copter::Log_Write_Vehicle_Startup_Messages()
sprintf(frame_buf, "Frame: %s", get_frame_string());
DataFlash.Log_Write_Message(frame_buf);
DataFlash.Log_Write_Mode(control_mode, control_mode_reason);
#if AC_RALLY
DataFlash.Log_Write_Rally(rally);
#endif
}

View File

@ -656,9 +656,10 @@
#ifndef AC_TERRAIN
#define AC_TERRAIN ENABLED
#if !AC_RALLY
#error Terrain relies on Rally which is disabled
#endif
#endif
#if AC_TERRAIN && !AC_RALLY
#error Terrain relies on Rally which is disabled
#endif
//////////////////////////////////////////////////////////////////////////////