forked from Archive/PX4-Autopilot
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:
parent
5a8062e646
commit
eb5b153d10
|
@ -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 = {};
|
||||
|
||||
|
|
Loading…
Reference in New Issue