Skip to content

Question: The "others" event callback #2

@cheton

Description

@cheton

Hi @whimsycwd

this.controller.on('others', (res) => {
    this.emitAll('serialport:read', res.raw);

    moveOn(res, false);
});

With the above code, the moveOn() function is called within the "others" event callback. The "others" event will be emitted if the message was not able to parse (see https://github.com/whimsycwd/snapjs/blob/master/src/app/controllers/Marlin/Marlin.js#L349-L351).

May I know for what kinds of messages that need to handle in the "others" callback when running a G-code program? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions