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:
Lorenz Meier 2017-07-09 13:52:50 +02:00
parent 5a8062e646
commit eb5b153d10
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {};