Copter: correct compilation when rally disabled
This commit is contained in:
parent
cf4be25d61
commit
d3e331e1f2
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user