Skip to content

Commit

Permalink
Fix Marlin startup regression from #464 (#473)
Browse files Browse the repository at this point in the history
* Fix Marlin startup regression from #464

* Try out @cheton's Marlin startup fix instead

As per his comment in #464 (comment)
  • Loading branch information
johnboiles authored and cheton committed May 13, 2019
1 parent d7bd48a commit f9817b6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/server/controllers/Marlin/MarlinController.js
Expand Up @@ -568,7 +568,9 @@ class MarlinController {
// Marlin readiness. On initial power-up, Marlin might
// miss that first M115 as it boots, so we send this
// possibly-redundant M115 when we see 'start'.
this.command('gcode', 'M115');
this.connection.write('M115\n', {
source: WRITE_SOURCE_SERVER
});
});

this.runner.on('echo', (res) => {
Expand Down Expand Up @@ -911,7 +913,9 @@ class MarlinController {

// M115: Get firmware version and capabilities
// The response to this will take us to the ready state
this.command('gcode', 'M115');
this.connection.write('M115\n', {
source: WRITE_SOURCE_SERVER
});

this.workflow.stop();

Expand Down

0 comments on commit f9817b6

Please sign in to comment.