fixed typos #51

This commit is contained in:
DJ2LS 2021-10-17 17:22:07 +02:00
parent b6dbd34851
commit b2ac19a1a3
3 changed files with 3 additions and 4 deletions

View file

@ -209,7 +209,7 @@ ipcMain.on('request-update-rx-buffer', (event, arg) => {
win.webContents.send('action-update-rx-buffer', 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); //win.webContents.send('action-update-rx-buffer', arg);
console.log("NEW MESSAGE ARRIVED!") console.log("NEW MESSAGE ARRIVED!")
console.log("WE WILL HANDLE THIS AS SOON AS WE HAVE A CHAT MODULE...") console.log("WE WILL HANDLE THIS AS SOON AS WE HAVE A CHAT MODULE...")

View file

@ -166,7 +166,7 @@ client.on('data', function(data) {
let Data = { let Data = {
data: data['DATA-ARRAY'], data: data['DATA-ARRAY'],
}; };
//console.log(Data) console.log(Data)
ipcRenderer.send('request-update-rx-buffer', Data); ipcRenderer.send('request-update-rx-buffer', Data);
} }
@ -262,7 +262,7 @@ exports.getRxBuffer = function() {
} }
// Get RX MSG BUffer // Get RX MSG BUffer
exports.getRxBuffer = function() { exports.getMsgRxBuffer = function() {
command = '{"type" : "GET", "command" : "RX_MSG_BUFFER", "timestamp" : ' + Date.now() + '}' command = '{"type" : "GET", "command" : "RX_MSG_BUFFER", "timestamp" : ' + Date.now() + '}'
// call command only if new data arrived // call command only if new data arrived

View file

@ -216,7 +216,6 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
try: try:
jsondata = json.dumps(output) jsondata = json.dumps(output)
except ValueError as e: except ValueError as e:
print(e) print(e)