mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 12:10:36 +08:00
MAVLink app: send status text only if connected to something that can actually handle it.
This increases the chance that the operator gets to see the messages that the vehicle emitted before telemetry was connected.
This commit is contained in:
@@ -385,7 +385,7 @@ protected:
|
||||
|
||||
void send(const hrt_abstime t)
|
||||
{
|
||||
if (!_mavlink->get_logbuffer()->empty()) {
|
||||
if (!_mavlink->get_logbuffer()->empty() && _mavlink->is_connected()) {
|
||||
|
||||
struct mavlink_log_s mavlink_log = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user