Skip to content

Commit

Permalink
feat: update Marlin start message parsing (#683)
Browse files Browse the repository at this point in the history
* Updated Marlin start message parsing

Some flavors of Marlin print 'echo:start' on serial connect instead of plain 'start'.
The controller will not finish its connection sequence and seem unresponsive

* Fix regex to make echo: optional

Co-authored-by: ejt4x <ejt@LAPTOP-J94AOG0A.localdomain>
Co-authored-by: Cheton Wu <cheton@gmail.com>
  • Loading branch information
3 people committed Oct 24, 2021
1 parent 030ec80 commit 02eac43
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,7 +1,7 @@
class MarlinLineParserResultStart {
// start
static parse(line) {
const r = line.match(/^start$/);
const r = line.match(/^(?:echo:)?start$/);
if (!r) {
return null;
}
Expand Down

0 comments on commit 02eac43

Please sign in to comment.