kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
v1.0.180
rodzic
255af7a39c
commit
e8cd811cea
20
index.js
20
index.js
|
@ -775,7 +775,7 @@ io.on("connection", function(socket) {
|
|||
console.log("No firmware yet, probably not Grbl then. lets see if we have Smoothie?");
|
||||
var output = {
|
||||
'command': 'connect',
|
||||
'response': "Detecting Firmware: Method 3 (Smoothieware)"
|
||||
'response': "Detecting Firmware: Method 3 (Unsupported firmware: Smoothie)"
|
||||
}
|
||||
io.sockets.emit('data', output);
|
||||
addQRealtime("version\n"); // Check if it's Smoothieware?
|
||||
|
@ -904,11 +904,17 @@ io.on("connection", function(socket) {
|
|||
status.machine.firmware.version = data.substr(data.search(/version:/i) + 9).split(/,/);
|
||||
status.machine.firmware.date = new Date(data.substr(data.search(/Build date:/i) + 12).split(/,/)).toDateString();
|
||||
// Start interval for status queries
|
||||
statusLoop = setInterval(function() {
|
||||
if (status.comms.connectionStatus > 0) {
|
||||
addQRealtime("?");
|
||||
}
|
||||
}, 200);
|
||||
// statusLoop = setInterval(function() {
|
||||
// if (status.comms.connectionStatus > 0) {
|
||||
// addQRealtime("?");
|
||||
// }
|
||||
// }, 200);
|
||||
var output = {
|
||||
'command': "FIRMWARE ERROR",
|
||||
'response': "Detected an unsupported version: Smoothieware " + status.machine.firmware.version + ". This software no longer support Smoothieware. \nLuckilly there is an alternative firmware you can install on your controller to make it work with this software. Check out Grbl-LPC at https://github.com/cprezzi/grbl-LPC - Grbl-LPC is a Grbl port for controllers using the NXP LPC176x chips, for example Smoothieboards"
|
||||
}
|
||||
io.sockets.emit('data', output);
|
||||
stopPort();
|
||||
} // end of machine identification
|
||||
|
||||
// Machine Feedback: Temperature and Position
|
||||
|
@ -2582,4 +2588,4 @@ function startChrome() {
|
|||
}
|
||||
}
|
||||
|
||||
process.on('exit', () => console.log('exit'))
|
||||
process.on('exit', () => console.log('exit'))
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.176",
|
||||
"version": "1.0.179",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.179",
|
||||
"version": "1.0.180",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Machine Interface Driver for OpenBuilds",
|
||||
"author": "github.com/openbuilds <webmaster@openbuilds.com>",
|
||||
|
|
Ładowanie…
Reference in New Issue