kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
rodzic
1df3f0d333
commit
81528e1b83
|
@ -1,3 +1,4 @@
|
|||
v1.0.329: Testing version for random start bug
|
||||
v1.0.327/8: Updated GHA compile environment dependencies
|
||||
v1.0.326: Reverted to classic Grbl Settings layout, added more Grbl settings parameters, fixed bug in Firmware upload tool,
|
||||
v1.0.325: Updated Electron-builder backend
|
||||
|
|
|
@ -226,13 +226,33 @@ function runJobFile() {
|
|||
// Add any event handlers here...
|
||||
xhr.open('POST', '/runjob', true);
|
||||
xhr.send(formData);
|
||||
printLog(`<span class="fg-red">[ GCODE Parser ]</span><span class='fg-darkGray'> GCODE File (from memory) sent to backend </span>`);
|
||||
|
||||
} else {
|
||||
socket.emit('runJob', {
|
||||
data: editor.getValue(),
|
||||
isJob: true,
|
||||
fileName: loadedFileName
|
||||
// v1.0.329 Removed as a test for random issue with Websocket Disconnects on some files, using http post for both
|
||||
// socket.emit('runJob', {
|
||||
// data: editor.getValue(),
|
||||
// isJob: true,
|
||||
// fileName: loadedFileName
|
||||
// });
|
||||
var formData = new FormData();
|
||||
var blob = new Blob([editor.getValue()], {
|
||||
type: 'text/plain'
|
||||
});
|
||||
|
||||
var fileOfBlob = new File([blob], 'upload.gcode');
|
||||
formData.append("file", fileOfBlob);
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.onload = function() {
|
||||
if (xhr.status == 200) {
|
||||
console.log(xhr.response)
|
||||
}
|
||||
};
|
||||
// Add any event handlers here...
|
||||
xhr.open('POST', '/runjob', true);
|
||||
xhr.send(formData);
|
||||
printLog(`<span class="fg-red">[ GCODE Parser ]</span><span class='fg-darkGray'> GCODE File (from gcode editor) sent to backend </span>`);
|
||||
|
||||
}
|
||||
|
||||
lastJobStartTime = new Date().getTime()
|
||||
|
|
Plik binarny nie jest wyświetlany.
Przed Szerokość: | Wysokość: | Rozmiar: 201 KiB Po Szerokość: | Wysokość: | Rozmiar: 151 KiB |
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.328",
|
||||
"version": "1.0.329",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "OpenBuildsCONTROL CNC Machine Host Software",
|
||||
"author": "github.com/openbuilds <support@openbuilds.com>",
|
||||
|
|
Ładowanie…
Reference in New Issue