From 63941f7785c3296818983b3cf0d984607222d28c Mon Sep 17 00:00:00 2001 From: "Brandon McGinty (deepseek)" Date: Sun, 9 Aug 2026 01:02:53 -0400 Subject: [PATCH] Fix double tone-generator start in tone-test mode connect() starts the tone generator but didn't set b.Tx=true, so setTransmit would start a second instance. Now b.Tx is set so the UI toggle works as a stop/restart instead of double-start. --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 04ff13a..89f6458 100644 --- a/client.go +++ b/client.go @@ -59,6 +59,7 @@ func (b *Barnard) connect(reconnect bool) bool { // Start the tone generator goroutine. b.toneTestStop = make(chan struct{}) go StartToneGenerator(b.Client, b.toneTestStop) + b.Tx = true // Attach the audio file saver. saver, err := NewAudioFileSaver(b.ToneTestOutput)