Skip to content

Commit

Permalink
Re-query the active mode when toggling M/V. Probably closes #105
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyc committed Jun 30, 2024
1 parent dec874c commit 6d4f4f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/open890/tcp_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,13 @@ defmodule Open890.TCPClient do

radio_state = radio_state |> RadioState.dispatch(msg)

if msg |> String.starts_with?("MV") do
# re-retrieve the operating mode when toggling between M/V
# This fixes an issue where the audio scope filter edges disappear
# When toggling M/V
ConnectionCommands.get_active_mode(connection)
end

# lock state
if msg |> String.starts_with?("LK") do
lock_state = msg |> String.ends_with?("1")
Expand Down

0 comments on commit 6d4f4f2

Please sign in to comment.