Copter: log_Heli is only used with FRAME_CONFIG as HELI_FRAME

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-02-05 20:35:59 -03:00 committed by Andrew Tridgell
parent 05b94de9a0
commit 7bfcec2fc1
1 changed files with 1 additions and 1 deletions

View File

@ -339,6 +339,7 @@ void Copter::Log_Write_SysID_Setup(uint8_t systemID_axis, float waveform_magnitu
#endif
}
#if FRAME_CONFIG == HELI_FRAME
struct PACKED log_Heli {
LOG_PACKET_HEADER;
uint64_t time_us;
@ -348,7 +349,6 @@ struct PACKED log_Heli {
float control_output;
};
#if FRAME_CONFIG == HELI_FRAME
// Write an helicopter packet
void Copter::Log_Write_Heli()
{