fix: when in autocall cw writing a call stop transmission
This commit is contained in:
@@ -2065,8 +2065,14 @@ export default function App() {
|
|||||||
// applyUdpCall saw current != lastUdpCall and refused every later UDP call.
|
// applyUdpCall saw current != lastUdpCall and refused every later UDP call.
|
||||||
if (opts?.force) lastUdpCallRef.current = v.trim().toUpperCase();
|
if (opts?.force) lastUdpCallRef.current = v.trim().toUpperCase();
|
||||||
// A callsign appeared (someone answered the CQ, or a spot was clicked) →
|
// A callsign appeared (someone answered the CQ, or a spot was clicked) →
|
||||||
// stop auto-calling so we don't key over the contact.
|
// stop auto-calling so we don't key over the contact. If a CQ was actually
|
||||||
if (v.trim() !== '') stopAutoCall();
|
// in flight, abort the current transmission too so it stops IMMEDIATELY
|
||||||
|
// rather than finishing the buffered call. (autoCallMacroRef flips to -1 on
|
||||||
|
// the first keystroke, so we only abort once.)
|
||||||
|
if (v.trim() !== '') {
|
||||||
|
if (autoCallMacroRef.current !== -1) WinkeyerStop().catch(() => {});
|
||||||
|
stopAutoCall();
|
||||||
|
}
|
||||||
// No-op guard: external apps (MSHV/WSJT-X) re-broadcast the same DX call
|
// No-op guard: external apps (MSHV/WSJT-X) re-broadcast the same DX call
|
||||||
// on every status packet. If it matches what's already in the entry,
|
// on every status packet. If it matches what's already in the entry,
|
||||||
// do nothing — otherwise we'd re-run the QRZ lookup, hit the cache and
|
// do nothing — otherwise we'd re-run the QRZ lookup, hit the cache and
|
||||||
|
|||||||
Reference in New Issue
Block a user