From 6d093c1ec300798b9e4908745242e16176fb8d1c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 15 Jul 2014 18:50:41 +0200 Subject: [PATCH] Fix the check for when to speak audio messages --- src/uas/UAS.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uas/UAS.cc b/src/uas/UAS.cc index 6023c37..393d4bb 100644 --- a/src/uas/UAS.cc +++ b/src/uas/UAS.cc @@ -1314,7 +1314,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) QString text = QString(b); int severity = mavlink_msg_statustext_get_severity(&message); - if (text.startsWith("#") || severity > MAV_SEVERITY_WARNING) + if (text.startsWith("#") || severity <= MAV_SEVERITY_WARNING) { text.remove("#audio:"); emit textMessageReceived(uasId, message.compid, severity, QString("Audio message: ") + text);