Skip to content

Commit

Permalink
Disable alarm mode check on feeder
Browse files Browse the repository at this point in the history
  • Loading branch information
walidkayhan committed Dec 13, 2024
1 parent 1aef3f1 commit 9f8fccd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/server/controllers/Grbl/GrblController.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,12 +385,12 @@ class GrblController {
return;
}

if (this.runner.isAlarm()) {
this.feeder.reset();
this.emit('workflow:state', this.workflow.state); // Propogate alarm code to UI
log.warn('Stopped sending G-code commands in Alarm mode');
return;
}
// if (this.runner.isAlarm()) {
// this.feeder.reset();
// this.emit('workflow:state', this.workflow.state); // Propogate alarm code to UI
// log.warn('Stopped sending G-code commands in Alarm mode');
// return;
// }

line = String(line).trim();
if (line.length === 0) {
Expand Down
12 changes: 6 additions & 6 deletions src/server/controllers/Grblhal/GrblHalController.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,12 +375,12 @@ class GrblHalController {
return;
}

if (this.runner.isAlarm()) {
this.feeder.reset();
this.emit('workflow:state', this.workflow.state); // Propogate alarm code to UI
log.warn('Stopped sending G-code commands in Alarm mode');
return;
}
// if (this.runner.isAlarm()) {
// this.feeder.reset();
// this.emit('workflow:state', this.workflow.state); // Propogate alarm code to UI
// log.warn('Stopped sending G-code commands in Alarm mode');
// return;
// }

line = String(line).trim();
if (line.length === 0) {
Expand Down

0 comments on commit 9f8fccd

Please sign in to comment.