diff --git a/main.js b/main.js
index b9bac5e..08203f8 100644
--- a/main.js
+++ b/main.js
@@ -606,17 +606,10 @@ async function settrx(qrg, mode = '') {
}
}
if (defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_ena) {
- let postData= '';
- postData+='main.set_frequency' + to.qrg + '';
- let options = {
- method: 'POST',
- headers: {
- 'User-Agent': 'SW2WL_v' + app.getVersion(),
- 'Content-Length': postData.length
- }
- };
let url="http://"+defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_host+':'+defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_port+'/';
- let x=await httpPost(url,options,postData);
+ let postData='';
+ let options={};
+ let x;
if (defaultcfg.profiles[defaultcfg.profile ?? 0].wavelog_pmode) {
postData= '';
@@ -630,7 +623,20 @@ async function settrx(qrg, mode = '') {
};
x=await httpPost(url,options,postData);
}
+
+ postData= '';
+ postData+='main.set_frequency' + to.qrg + '';
+ options = {
+ method: 'POST',
+ headers: {
+ 'User-Agent': 'SW2WL_v' + app.getVersion(),
+ 'Content-Length': postData.length
+ }
+ };
+ x=await httpPost(url,options,postData);
+
}
+
if (defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_ena) {
const client = net.createConnection({ host: defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_host, port: defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_port }, () => {
client.write("F " + to.qrg + "\n");
diff --git a/package.json b/package.json
index 700d9e5..de2a8f5 100644
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
"description": "Gateway for connecting WSJT-* and FLRig to Wavelog",
"keywords": [],
"main": "./main.js",
- "version": "1.1.10",
+ "version": "1.1.11",
"author": "DJ7NT",
"scripts": {
"start": "electron-forge start",