Skip to content

Commit bad5382

Browse files
committed
GCS_MAVLink: correct static assert for stream rate counts
C++-17 warning under clang
1 parent 204eda4 commit bad5382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/GCS_MAVLink/GCS_MAVLink_Parameters.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static const uint8_t default_rates[] {
9696
AP_MAV_DEFAULT_STREAM_RATE_PARAMS,
9797
AP_MAV_DEFAULT_STREAM_RATE_ADSB,
9898
};
99-
static_assert(ARRAY_SIZE(default_rates) == GCS_MAVLINK::NUM_STREAMS);
99+
static_assert(ARRAY_SIZE(default_rates) == GCS_MAVLINK::NUM_STREAMS, "need same default rates as NUM_STREAMS");
100100

101101
#define DRATE(x) (float(default_rates[x]))
102102

0 commit comments

Comments
 (0)