Skip to content

Commit a039d1c

Browse files
committed
Fixing a Hamlib-Issue and several declarations
1 parent d75a49c commit a039d1c

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

advanced.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(document).ready(function() {
2121

2222
if ($("#hamlib_ena").is(':checked') && cfg.profiles[cfg.profile].flrig_ena){cfg.profiles[cfg.profile].flrig_ena = false;}
2323

24-
x=ipcRenderer.sendSync("set_config", cfg);
24+
const x=ipcRenderer.sendSync("set_config", cfg);
2525
// console.log(x);
2626

2727
});

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ipcMain.on("set_config", async (event,arg) => {
105105
});
106106

107107
ipcMain.on("resize", async (event,arg) => {
108-
newsize=arg;
108+
const newsize=arg;
109109
s_mainWindow.setContentSize(newsize.width,newsize.height,newsize.ani);
110110
s_mainWindow.setSize(newsize.width,newsize.height,newsize.ani);
111111
event.returnValue=true;
@@ -562,7 +562,7 @@ async function settrx(qrg, mode = '') {
562562
}
563563
}
564564
if (defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_ena) {
565-
const client = net.createConnection({ host: defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_host, port: defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_port }, () => {
565+
const client = net.createConnection({ host: defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_host, port: defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_port }, () => {
566566
client.write("F " + to.qrg + "\n");
567567
if (defaultcfg.profiles[defaultcfg.profile ?? 0].wavelog_pmode) {
568568
client.write("M " + to.mode + "\n-1");

renderer.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $(document).ready(function() {
6565
});
6666

6767
bt_quit.addEventListener('click', () => {
68-
x=ipcRenderer.sendSync("quit", '');
68+
const x=ipcRenderer.sendSync("quit", '');
6969
});
7070

7171
bt_test.addEventListener('click', () => {
@@ -253,7 +253,7 @@ async function getInfo(which) {
253253
async function getsettrx() {
254254
if ($("#flrig_ena").is(':checked') || cfg.profiles[active_cfg].hamlib_ena) {
255255
console.log('Polling TRX '+trxpoll);
256-
const x=get_trx();
256+
const x=await get_trx();
257257
}
258258
trxpoll = setTimeout(() => {
259259
getsettrx();
@@ -289,9 +289,8 @@ const isObject = (object) => {
289289
async function informWavelog(CAT) {
290290
lastCat=Date.now();
291291
let data = {
292-
radio: "WLGate",
292+
radio: cfg.profiles[active_cfg].wavelog_radioname || "WLGate",
293293
key: cfg.profiles[active_cfg].wavelog_key,
294-
radio: cfg.profiles[active_cfg].wavelog_radioname
295294
};
296295
if (CAT.power !== undefined && CAT.power !== 0) {
297296
data.power = CAT.power;

0 commit comments

Comments
 (0)