Skip to content

Commit

Permalink
CurrentState: honor MAVLinkInterface.speechenable
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 committed Sep 17, 2024
1 parent 548f073 commit f00dd6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ExtLibs/ArduPilot/CurrentState.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2827,6 +2827,7 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
try
{
if (oldmode != mode && Speech != null && Speech.speechEnable &&
parent?.parent?.speechenabled == true &&
parent?.parent?.MAV?.cs == this &&
Settings.Instance.GetBoolean("speechmodeenabled") &&
(armed || !Settings.Instance.GetBoolean("speech_armed_only")))
Expand Down Expand Up @@ -3324,6 +3325,7 @@ private void Parent_OnPacketReceived(object sender, MAVLink.MAVLinkMessage mavLi
try
{
if (oldwp != wpno && Speech != null && Speech.speechEnable && parent != null &&
parent.parent.speechenabled &&
parent.parent.MAV.cs == this &&
Settings.Instance.GetBoolean("speechwaypointenabled") &&
(armed || !Settings.Instance.GetBoolean("speech_armed_only")))
Expand Down

0 comments on commit f00dd6d

Please sign in to comment.