Added test-case for non-arduino-compliant boards which has AutoReset disabled in hardware like PhoenixCNC etc

pull/110/head
openbuilds-engineer 2018-10-10 20:36:56 +02:00
rodzic 1014d904af
commit 6bf6736ae7
2 zmienionych plików z 11 dodań i 2 usunięć

Wyświetl plik

@ -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.

Wyświetl plik

@ -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>",