From b2ac19a1a33f4dd3426bbd8cfa291d11f1f0298d Mon Sep 17 00:00:00 2001 From: DJ2LS Date: Sun, 17 Oct 2021 17:22:07 +0200 Subject: [PATCH] fixed typos #51 --- gui/main.js | 2 +- gui/sock.js | 4 ++-- tnc/sock.py | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gui/main.js b/gui/main.js index 46133734..0b6fe3a2 100644 --- a/gui/main.js +++ b/gui/main.js @@ -209,7 +209,7 @@ ipcMain.on('request-update-rx-buffer', (event, arg) => { win.webContents.send('action-update-rx-buffer', arg); }); -ipcMain.on('request-update-rx-,sg-buffer', (event, arg) => { +ipcMain.on('request-update-rx-msg-buffer', (event, arg) => { //win.webContents.send('action-update-rx-buffer', arg); console.log("NEW MESSAGE ARRIVED!") console.log("WE WILL HANDLE THIS AS SOON AS WE HAVE A CHAT MODULE...") diff --git a/gui/sock.js b/gui/sock.js index 22422ed0..f7206095 100644 --- a/gui/sock.js +++ b/gui/sock.js @@ -166,7 +166,7 @@ client.on('data', function(data) { let Data = { data: data['DATA-ARRAY'], }; - //console.log(Data) + console.log(Data) ipcRenderer.send('request-update-rx-buffer', Data); } @@ -262,7 +262,7 @@ exports.getRxBuffer = function() { } // Get RX MSG BUffer -exports.getRxBuffer = function() { +exports.getMsgRxBuffer = function() { command = '{"type" : "GET", "command" : "RX_MSG_BUFFER", "timestamp" : ' + Date.now() + '}' // call command only if new data arrived diff --git a/tnc/sock.py b/tnc/sock.py index 7156580d..7c311647 100644 --- a/tnc/sock.py +++ b/tnc/sock.py @@ -216,7 +216,6 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler): try: jsondata = json.dumps(output) - except ValueError as e: print(e)