mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-22 14:24:21 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user