Skip to content

Commit 3cc88b7

Browse files
committed
RM Split working with FLRig, but not Hamlib
1 parent 23a50b2 commit 3cc88b7

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

main.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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",

0 commit comments

Comments
 (0)