diff --git a/main.js b/main.js
index 2cf3cd0..ec360cd 100644
--- a/main.js
+++ b/main.js
@@ -20,6 +20,7 @@ var defaultcfg = {
wavelog_key: "mykey",
wavelog_id: 0,
wavelog_radioname: 'WLGate',
+ wavelog_pmode: true,
flrig_host: '127.0.0.1',
flrig_port: '12345',
flrig_ena: false,
@@ -338,16 +339,18 @@ async function settrx(qrg) {
let url="http://"+defaultcfg.flrig_host+':'+defaultcfg.flrig_port+'/';
x=await httpPost(url,options,postData);
- postData= '';
- postData+='
rig.set_modeA' + to.mode + '';
- var options = {
- method: 'POST',
- headers: {
- 'User-Agent': 'SW2WL_v' + app.getVersion(),
- 'Content-Length': postData.length
- }
- };
- x=await httpPost(url,options,postData);
+ if (defaultcfg.wavelog_pmode) {
+ postData= '';
+ postData+='
rig.set_modeA' + to.mode + '';
+ var options = {
+ method: 'POST',
+ headers: {
+ 'User-Agent': 'SW2WL_v' + app.getVersion(),
+ 'Content-Length': postData.length
+ }
+ };
+ x=await httpPost(url,options,postData);
+ }
return true;
}
diff --git a/package.json b/package.json
index ab01e36..8b0860c 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.0.17",
+ "version": "1.0.18",
"author": "DJ7NT",
"scripts": {
"start": "electron-forge start",
diff --git a/renderer.js b/renderer.js
index 909b424..ef81bc6 100644
--- a/renderer.js
+++ b/renderer.js
@@ -26,6 +26,7 @@ $(document).ready(function() {
$("#flrig_host").val(cfg.flrig_host);
$("#flrig_port").val(cfg.flrig_port);
$("#flrig_ena").prop("checked", cfg.flrig_ena);
+ $("#wavelog_pmode").prop("checked", cfg.wavelog_pmode);
bt_save.addEventListener('click', () => {
cfg.wavelog_url=$("#wavelog_url").val().trim();
@@ -35,6 +36,7 @@ $(document).ready(function() {
cfg.flrig_host=$("#flrig_host").val().trim();
cfg.flrig_port=$("#flrig_port").val().trim();
cfg.flrig_ena=$("#flrig_ena").is(':checked');
+ cfg.wavelog_pmode=$("#wavelog_pmode").is(':checked');
x=ipcRenderer.sendSync("set_config", cfg);
console.log(x);
});