kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Added test-case for non-arduino-compliant boards which has AutoReset disabled in hardware like PhoenixCNC etc
rodzic
1014d904af
commit
6bf6736ae7
11
index.js
11
index.js
|
@ -671,13 +671,22 @@ io.on("connection", function(socket) {
|
|||
} else {
|
||||
addQRealtime("\n"); // this causes smoothie to send the welcome string
|
||||
}
|
||||
setTimeout(function() { //wait for controller to be ready
|
||||
if (status.machine.firmware.type.length < 1) {
|
||||
console.log("Lets see if we have Grbl instance with a board that doesnt have AutoReset");
|
||||
addQRealtime(String.fromCharCode(0x18)); // ctrl-x (needed for rx/tx connection)
|
||||
console.log("Sent: Ctrl+x");
|
||||
}
|
||||
}, config.grblWaitTime * 1000);
|
||||
|
||||
setTimeout(function() { //wait for controller to be ready
|
||||
if (status.machine.firmware.type.length < 1) {
|
||||
console.log("No GRBL, lets see if we have Smoothie?");
|
||||
addQRealtime("version\n"); // Check if it's Smoothieware?
|
||||
console.log("Sent: version");
|
||||
}
|
||||
}, config.grblWaitTime * 1000);
|
||||
}, config.grblWaitTime * 2000);
|
||||
|
||||
if (config.firmwareWaitTime > 0) {
|
||||
setTimeout(function() {
|
||||
// Close port if we don't detect supported firmware after 2s.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsMachineDriver",
|
||||
"version": "1.0.101",
|
||||
"version": "1.0.102",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Machine Interface Driver for OpenBuilds",
|
||||
"author": "github.com/openbuilds <webmaster@openbuilds.com>",
|
||||
|
|
Ładowanie…
Reference in New Issue