Skip to content

Commit

Permalink
Merge pull request #412 from neilenns/neilenns/issue411
Browse files Browse the repository at this point in the history
Hotline button should toggle XCA, not XC
  • Loading branch information
neilenns authored Feb 15, 2025
2 parents d14411d + 7e3ea68 commit de9475e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion com.neil-enns.trackaudio.sdPlugin/pi/stationStatus.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
label="Automatically enable speaker mode"
></sdpi-checkbox>

<summary>Advanced options</summary>
<sdpi-checkbox
setting="autoSetRx"
label="Automatically set Rx mode"
Expand Down
10 changes: 5 additions & 5 deletions src/events/streamDeck/hotline/hotlineShortPress.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import actionManager from "@managers/action";
import trackAudioManager from "@managers/trackAudio";

/**
* Handles the short press of a hotline action. Toggles the tx on both the primary and hotline frequency.
* Handles the short press of a hotline action. Toggles TX and XCA on both the primary and hotline frequency.
* @param actionId The action id to toggle the state of
*/
export const handleHotlineShortPress = (action: KeyAction) => {
Expand All @@ -24,16 +24,16 @@ export const handleHotlineShortPress = (action: KeyAction) => {
foundAction.isTxHotline = true;
}

// The primary frequency always gets its xc state toggled to match the tx state,
// ensuring xc is re-enabled when tx turns on.
// The primary frequency always gets its xca state toggled to match the tx state,
// ensuring xca is re-enabled when tx turns on.
trackAudioManager.sendMessage({
type: "kSetStationState",
value: {
frequency: foundAction.primaryFrequency,
tx: !foundAction.isTxPrimary,
rx: undefined,
xc: !foundAction.isTxPrimary,
xca: undefined,
xc: undefined,
xca: !foundAction.isTxPrimary,
headset: undefined,
isOutputMuted: undefined,
},
Expand Down

0 comments on commit de9475e

Please sign in to comment.