mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed typos #51
This commit is contained in:
parent
b6dbd34851
commit
b2ac19a1a3
3 changed files with 3 additions and 4 deletions
|
@ -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...")
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue