mavlink: don't silently ignore mavlink dev streams

I don't think it makes sense to ignore required streams that easily.

If we do use some streams that are only in the MAVLink development.xml
dialect, then we will have to properly and explicitly ifdef them
everywhere that we use them. Otherwise, this basically means that we
will just swallow this warning on most (non mavlink-dev) platforms which
can mask issues.
This commit is contained in:
Julian Oes
2025-11-22 13:50:41 +13:00
committed by Beat Küng
parent a6d5c78d10
commit 276cab8d3c
+2 -2
View File
@@ -1194,8 +1194,8 @@ Mavlink::configure_stream(const char *stream_name, const float rate)
}
// if we reach here, the stream list does not contain the stream.
// flash constrained target's don't include all streams, and some are only available for the development dialect
#if defined(CONSTRAINED_FLASH) || !defined(MAVLINK_DEVELOPMENT_H)
// flash constrained target's don't include all streams
#if defined(CONSTRAINED_FLASH)
return PX4_OK;
#else
PX4_WARN("stream %s not found", stream_name);