Skip to content

Commit de9475e

Browse files
authored
Merge pull request #412 from neilenns/neilenns/issue411
Hotline button should toggle XCA, not XC
2 parents d14411d + 7e3ea68 commit de9475e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

com.neil-enns.trackaudio.sdPlugin/pi/stationStatus.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@
118118
label="Automatically enable speaker mode"
119119
></sdpi-checkbox>
120120

121-
<summary>Advanced options</summary>
122121
<sdpi-checkbox
123122
setting="autoSetRx"
124123
label="Automatically set Rx mode"

src/events/streamDeck/hotline/hotlineShortPress.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import actionManager from "@managers/action";
33
import trackAudioManager from "@managers/trackAudio";
44

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

27-
// The primary frequency always gets its xc state toggled to match the tx state,
28-
// ensuring xc is re-enabled when tx turns on.
27+
// The primary frequency always gets its xca state toggled to match the tx state,
28+
// ensuring xca is re-enabled when tx turns on.
2929
trackAudioManager.sendMessage({
3030
type: "kSetStationState",
3131
value: {
3232
frequency: foundAction.primaryFrequency,
3333
tx: !foundAction.isTxPrimary,
3434
rx: undefined,
35-
xc: !foundAction.isTxPrimary,
36-
xca: undefined,
35+
xc: undefined,
36+
xca: !foundAction.isTxPrimary,
3737
headset: undefined,
3838
isOutputMuted: undefined,
3939
},

0 commit comments

Comments
 (0)