Skip to content

Commit

Permalink
ArduPlane: do not send MSG_RPM if RPM not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Sep 28, 2022
1 parent 410bd30 commit 3a61c97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduPlane/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "GCS_Mavlink.h"

#include "Plane.h"
#include <AP_RPM/AP_RPM_config.h>

MAV_TYPE GCS_Plane::frame_type() const
{
Expand Down Expand Up @@ -567,7 +568,9 @@ static const ap_message STREAM_EXTRA1_msgs[] = {
MSG_ATTITUDE,
MSG_SIMSTATE,
MSG_AHRS2,
#if AP_RPM_ENABLED
MSG_RPM,
#endif
MSG_AOA_SSA,
MSG_PID_TUNING,
MSG_LANDING,
Expand Down

0 comments on commit 3a61c97

Please sign in to comment.