Commit 4c9ef473 authored by Lorenz Meier's avatar Lorenz Meier

Remove unnecessary audio message text

parent 11af2c4f
...@@ -1316,7 +1316,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message) ...@@ -1316,7 +1316,7 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
if (text.startsWith("#") || severity <= MAV_SEVERITY_WARNING) if (text.startsWith("#") || severity <= MAV_SEVERITY_WARNING)
{ {
text.remove("#audio:"); text.remove("#audio:");
emit textMessageReceived(uasId, message.compid, severity, QString("Audio message: ") + text); emit textMessageReceived(uasId, message.compid, severity, text);
GAudioOutput::instance()->say(text.toLower(), severity); GAudioOutput::instance()->say(text.toLower(), severity);
} }
else else
......
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