Skip to content

Commit

Permalink
v1.0.360
Browse files Browse the repository at this point in the history
  • Loading branch information
petervanderwalt committed Mar 9, 2023
1 parent 4cef4d0 commit b791f92
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
@@ -1,3 +1,4 @@
v1.0.360: Improved Job Recovery wizard to handle Spindle commands / Warn if no spindle commands found (Thanks to @sharmstr)
v1.0.357-359: Debugged and fixed the Linux/Mac Modules bug, removed Hazardous from dependencies, Changed internal methods for launching esptool
v1.0.356: Added right-click Context Menu to Macro Buttons. Moved Delete/Edit to Macros Context Menu. Added Macro Button Sorting to Context Menu. Added Macro Export/Import functionality
v1.0.355: Updated installer license agreement / terms and conditions, Added Email Registration, Fixed Surfacing Wizard menu bug
Expand Down
21 changes: 13 additions & 8 deletions app/wizards/resume/resume.js
Expand Up @@ -139,7 +139,7 @@ function startFromHere(lineNumber) {
<ul>
<li>Keep the first <span class="tally dark" id="resumeZUpLine"></span> lines of the file as header</li>
<li>Raise Z with the GCODE: <span class="tally dark" id="resumeZUp"></span></li>
<li><span id="spindleMsg"><span class="bg-red fg-white">Spindle ON command not found!</span></span><span class="tally dark" id="resumeSpindle"></span></li>
<li><span id="spindleMsg" class="fg-darkRed">Spindle ON command not found! <span class="tally alert">Please start spindle before running job</span> </span></li>
<li>Move to entry position with GCODE: <span class="tally dark" id="resumeXYA"></span></li>
<li>Move to cutting height with GCODE: <span class="tally dark" id="resumeZm"></span></li>
<li>Run GCODE starting at line <span class="tally dark" id="resumeLastLine"></span> and continue with the job</li>
Expand All @@ -157,16 +157,16 @@ function startFromHere(lineNumber) {
if (currentLine.length > 0) {
currentLine = currentLine.split(/[;(]/); // Remove everything after ; or ( = comment
line = currentLine[0]
line = line.toUpperCase();
line = line.toUpperCase();

if ( line.indexOf('M3') != -1 || line.indexOf('M4') != -1 ) {
foundSpindle = true;
if (line.indexOf('M3') != -1 || line.indexOf('M4') != -1) {
foundSpindle = true;
spindle = line;
// Search forward one line for pause cmd
if (editor.session.getLine(i + 1).toUpperCase().indexOf('G4') != -1) {
console.log('pause line? ' + editor.session.getLine(i + 1))
spindle += '\n' + editor.session.getLine(i + 1).toUpperCase();
}
}
break;
}
}
Expand Down Expand Up @@ -200,9 +200,9 @@ function startFromHere(lineNumber) {
$('#resumeZm').html(GcodeLineZDown);

if (spindle) {
$('#spindleMsg').html("Turn spindle ON: ");
$('#spindleMsg').html("Turn spindle ON: <span class='tally dark' id='resumeSpindle'>" + spindle + "</span> ");
$('#resumeSpindle').html(spindle);
}
}

//Metro.dialog.open("#ResumeFileDialog");
}
Expand All @@ -216,7 +216,12 @@ function redoJob() {
var ZGcode = $('#resumeZm').html();
var resumeLineNumber = $('#resumeLastLine').html();
var resumeLastNumber = editor.session.getLength();
var spindleGcode = $('#resumeSpindle').html();
if ($('#resumeSpindle').html() != undefined) {
var spindleGcode = $('#resumeSpindle').html();
} else {
var spindleGcode = '';
}



for (var i = 0; i < startLineNumber; i++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "OpenBuildsCONTROL",
"version": "1.0.359",
"version": "1.0.360",
"license": "AGPL-3.0",
"description": "OpenBuildsCONTROL CNC Machine Host Software",
"author": "github.com/openbuilds <support@openbuilds.com>",
Expand Down

0 comments on commit b791f92

Please sign in to comment.