Commit 6d093c1e authored by Lorenz Meier's avatar Lorenz Meier

Fix the check for when to speak audio messages

parent 960b505b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment