Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ $(document).ready(function() {

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

x=ipcRenderer.sendSync("set_config", cfg);
const x=ipcRenderer.sendSync("set_config", cfg);
// console.log(x);

});
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ ipcMain.on("set_config", async (event,arg) => {
});

ipcMain.on("resize", async (event,arg) => {
newsize=arg;
const newsize=arg;
s_mainWindow.setContentSize(newsize.width,newsize.height,newsize.ani);
s_mainWindow.setSize(newsize.width,newsize.height,newsize.ani);
event.returnValue=true;
Expand Down Expand Up @@ -562,7 +562,7 @@ async function settrx(qrg, mode = '') {
}
}
if (defaultcfg.profiles[defaultcfg.profile ?? 0].hamlib_ena) {
const client = net.createConnection({ host: defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_host, port: defaultcfg.profiles[defaultcfg.profile ?? 0].flrig_port }, () => {
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");
if (defaultcfg.profiles[defaultcfg.profile ?? 0].wavelog_pmode) {
client.write("M " + to.mode + "\n-1");
Expand Down
7 changes: 3 additions & 4 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ $(document).ready(function() {
});

bt_quit.addEventListener('click', () => {
x=ipcRenderer.sendSync("quit", '');
const x=ipcRenderer.sendSync("quit", '');
});

bt_test.addEventListener('click', () => {
Expand Down Expand Up @@ -253,7 +253,7 @@ async function getInfo(which) {
async function getsettrx() {
if ($("#flrig_ena").is(':checked') || cfg.profiles[active_cfg].hamlib_ena) {
console.log('Polling TRX '+trxpoll);
const x=get_trx();
const x=await get_trx();
}
trxpoll = setTimeout(() => {
getsettrx();
Expand Down Expand Up @@ -289,9 +289,8 @@ const isObject = (object) => {
async function informWavelog(CAT) {
lastCat=Date.now();
let data = {
radio: "WLGate",
radio: cfg.profiles[active_cfg].wavelog_radioname || "WLGate",
key: cfg.profiles[active_cfg].wavelog_key,
radio: cfg.profiles[active_cfg].wavelog_radioname
};
if (CAT.power !== undefined && CAT.power !== 0) {
data.power = CAT.power;
Expand Down