Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ce7d6a1b
Unverified
Commit
ce7d6a1b
authored
Apr 18, 2020
by
Don Gagne
Committed by
GitHub
Apr 18, 2020
Browse files
Merge pull request #8664 from mavlink/pr-fix-hashtag
Vehicle: fix removal of hashtag in statustext
parents
43cc9a1b
68b649e9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Vehicle/Vehicle.cc
View file @
ce7d6a1b
...
...
@@ -1001,8 +1001,17 @@ void Vehicle::_chunkedStatusTextCompleted(uint8_t compId)
// If the message is NOTIFY or higher severity, or starts with a '#',
// then read it aloud.
if
(
messageText
.
startsWith
(
"#"
)
||
severity
<=
MAV_SEVERITY_NOTICE
)
{
messageText
.
remove
(
"#"
);
bool
readAloud
=
false
;
if
(
messageText
.
startsWith
(
"#"
))
{
messageText
.
remove
(
0
,
1
);
readAloud
=
true
;
}
else
if
(
severity
<=
MAV_SEVERITY_NOTICE
)
{
readAloud
=
true
;
}
if
(
readAloud
)
{
if
(
!
skipSpoken
)
{
qgcApp
()
->
toolbox
()
->
audioOutput
()
->
say
(
messageText
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment