diff --git a/libraries/AP_RPM/LogStructure.h b/libraries/AP_RPM/LogStructure.h index e0677f343adbd1..99ec37da32aefb 100644 --- a/libraries/AP_RPM/LogStructure.h +++ b/libraries/AP_RPM/LogStructure.h @@ -1,6 +1,7 @@ #pragma once #include +#include "AP_RPM_config.h" #define LOG_IDS_FROM_RPM \ LOG_RPM_MSG @@ -21,6 +22,10 @@ struct PACKED log_RPM { uint8_t health; }; +#if !AP_RPM_ENABLED +#define LOG_STRUCTURE_FROM_RPM +#else #define LOG_STRUCTURE_FROM_RPM \ { LOG_RPM_MSG, sizeof(log_RPM), \ "RPM", "QBffB", "TimeUS,I,RPM,Qual,H", "s#q--", "F-000" , true }, +#endif