Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays to buffers #42

Merged
merged 4 commits into from
Sep 11, 2013
Merged

Arrays to buffers #42

merged 4 commits into from
Sep 11, 2013

Conversation

reconbot
Copy link
Member

@reconbot reconbot commented Sep 9, 2013

Change our writes to use buffers instead of arrays so node Writable streams don't complain. We haven't seen this issue with node-serialport because it auto converts arrays to buffers but other output streams do not.

I rebased this branch off of #43 and make the necessary changes so the tests won't break. This was needed because tests use Array#indexOf a lot.

jgautier added a commit that referenced this pull request Sep 11, 2013
Looks good thanks!  Also thanks for fixing travis.
@jgautier jgautier merged commit b3aeb2f into firmata:master Sep 11, 2013
this.lastWrite = buffer;
this.emit('write', buffer);

this.emit('write', buffer);
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

These changes need to make their way to Johnny-Five as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

For the record, we landed something else instead, we now check to see if we're calling firmata correctly instead of spying on what firmata is doing.

@reconbot reconbot deleted the arrays-to-buffers branch September 11, 2013 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants