File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -689,6 +689,18 @@ async function settrx(qrg, mode = '') {
689689 let options = { } ;
690690 let x ;
691691
692+ // Reset split mode before setting frequency
693+ postData = '<?xml version="1.0"?>' ;
694+ postData += '<methodCall><methodName>rig.set_split</methodName><params><param><value><boolean>false</boolean></value></param></params></methodCall>' ;
695+ options = {
696+ method : 'POST' ,
697+ headers : {
698+ 'User-Agent' : 'SW2WL_v' + app . getVersion ( ) ,
699+ 'Content-Length' : postData . length
700+ }
701+ } ;
702+ x = await httpPost ( url , options , postData ) ;
703+
692704 if ( defaultcfg . profiles [ defaultcfg . profile ?? 0 ] . wavelog_pmode ) {
693705 postData = '<?xml version="1.0"?>' ;
694706 postData += '<methodCall><methodName>rig.set_modeA</methodName><params><param><value>' + to . mode + '</value></param></params></methodCall>' ;
@@ -717,6 +729,8 @@ async function settrx(qrg, mode = '') {
717729
718730 if ( defaultcfg . profiles [ defaultcfg . profile ?? 0 ] . hamlib_ena ) {
719731 const client = net . createConnection ( { host : defaultcfg . profiles [ defaultcfg . profile ?? 0 ] . hamlib_host , port : defaultcfg . profiles [ defaultcfg . profile ?? 0 ] . hamlib_port } , ( ) => {
732+ // Reset split mode before setting frequency
733+ client . write ( "S 0 VFOA\n" ) ;
720734 client . write ( "F " + to . qrg + "\n" ) ;
721735 if ( defaultcfg . profiles [ defaultcfg . profile ?? 0 ] . wavelog_pmode ) {
722736 client . write ( "M " + to . mode + "\n-1" ) ;
Original file line number Diff line number Diff line change 44 "description" : " Gateway for connecting WSJT-* and FLRig to Wavelog" ,
55 "keywords" : [],
66 "main" : " ./main.js" ,
7- "version" : " 1.1.12 " ,
7+ "version" : " 1.1.13 " ,
88 "author" : " DJ7NT" ,
99 "scripts" : {
1010 "start" : " electron-forge start" ,
You can’t perform that action at this time.
0 commit comments