Skip to content

Use new Serialport isOpen boolean API - #2

Merged
TimPietrusky merged 1 commit into
beyondscreen:masterfrom
ericvicenti:patch-1
Dec 3, 2018
Merged

TimPietrusky merged 1 commit into
beyondscreen:masterfrom
ericvicenti:patch-1

Conversation

@ericvicenti

Copy link
Copy Markdown
Contributor

I was getting errors about isOpen being a boolean, because apparently serialport has changed the API here

I was getting errors about isOpen being a boolean, because apparently serialport has changed the API here
@ericvicenti

Copy link
Copy Markdown
Contributor Author

cc @cinderblock

@TimPietrusky
TimPietrusky self-requested a review December 3, 2018 20:57
@TimPietrusky

Copy link
Copy Markdown
Member

We should also update the documentation to reflect which version of node-serialport is working with the driver.

@ericvicenti Do you know when this change in the API was introduced?

@TimPietrusky TimPietrusky self-assigned this Dec 3, 2018

@TimPietrusky TimPietrusky left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@TimPietrusky
TimPietrusky merged commit ca3175a into beyondscreen:master Dec 3, 2018
@cinderblock

Copy link
Copy Markdown

Looks like this change happend in SerialPort 5.x https://github.com/node-serialport/node-serialport/blob/160cf33bdbf331775ae2ccce8f374ec9e0988048/packages/serialport/UPGRADE_GUIDE.md#upgrading-from-4x-to-5x

Maybe this should be updated to test if isOpen is a function or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants