diff --git a/ArduPlane/Log.cpp b/ArduPlane/Log.cpp index a73c6dc552..2fdfcd618b 100644 --- a/ArduPlane/Log.cpp +++ b/ArduPlane/Log.cpp @@ -255,9 +255,11 @@ void Plane::Log_Write_RC(void) { logger.Write_RCIN(); logger.Write_RCOUT(); +#if AP_RSSI_ENABLED if (rssi.enabled()) { logger.Write_RSSI(); } +#endif Log_Write_AETR(); } diff --git a/ArduPlane/Parameters.cpp b/ArduPlane/Parameters.cpp index 19288615a6..65198d9cb5 100644 --- a/ArduPlane/Parameters.cpp +++ b/ArduPlane/Parameters.cpp @@ -975,9 +975,11 @@ const AP_Param::Info Plane::var_info[] = { GOBJECT(rpm_sensor, "RPM", AP_RPM), #endif +#if AP_RSSI_ENABLED // @Group: RSSI_ // @Path: ../libraries/AP_RSSI/AP_RSSI.cpp GOBJECT(rssi, "RSSI_", AP_RSSI), +#endif // @Group: NTF_ // @Path: ../libraries/AP_Notify/AP_Notify.cpp diff --git a/ArduPlane/system.cpp b/ArduPlane/system.cpp index d931ac158d..dafe5e8bd7 100644 --- a/ArduPlane/system.cpp +++ b/ArduPlane/system.cpp @@ -45,7 +45,9 @@ void Plane::init_ardupilot() // initialise battery monitoring battery.init(); +#if AP_RSSI_ENABLED rssi.init(); +#endif #if AP_RPM_ENABLED rpm_sensor.init();