Require talk key for tone test transmission
This commit is contained in:
committed by
Brandon McGinty
parent
612db896ce
commit
1ea71b1862
@@ -34,6 +34,10 @@ func (b *Barnard) start() {
|
||||
b.connect(false)
|
||||
}
|
||||
|
||||
func (b *Barnard) toneTestAutoTransmit() bool {
|
||||
return b.ToneTest && b.AutoTransmit
|
||||
}
|
||||
|
||||
func (b *Barnard) exitWithError(err error) {
|
||||
b.Ui.Close()
|
||||
b.exitStatus = 1
|
||||
@@ -66,15 +70,14 @@ func (b *Barnard) connect(reconnect bool) bool {
|
||||
b.toneTestSaver = saver
|
||||
b.Client.Config.AttachAudio(saver)
|
||||
|
||||
b.toneTestStop = make(chan struct{})
|
||||
go StartToneGenerator(b.Client, b.toneTestStop)
|
||||
b.Tx = true
|
||||
// Tone mode starts transmitting immediately. Reflect that in the UI so
|
||||
// the F8 toggle has a visible initial state and transition.
|
||||
b.UpdateGeneralStatus(" Tx ", true)
|
||||
b.AddOutputLine("Tone test transmission started")
|
||||
|
||||
b.Connected = true
|
||||
if b.toneTestAutoTransmit() {
|
||||
b.toneTestStop = make(chan struct{})
|
||||
go StartToneGenerator(b.Client, b.toneTestStop)
|
||||
b.Tx = true
|
||||
b.UpdateGeneralStatus(" Tx ", true)
|
||||
b.AddOutputLine("Tone test transmission started")
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user