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

Make baud property settable. #1082

Merged
merged 1 commit into from
Apr 8, 2016
Merged

Make baud property settable. #1082

merged 1 commit into from
Apr 8, 2016

Conversation

dtex
Copy link
Collaborator

@dtex dtex commented Apr 5, 2016

Fixes #1075

@dtex
Copy link
Collaborator Author

dtex commented Apr 6, 2016

@pacozaa tested and this fix works, but I don't want to merge without knowing what's going on with Travis and Appveyor

@pacozaa
Copy link
Contributor

pacozaa commented Apr 6, 2016

@dtex No problem :)

@@ -189,7 +189,7 @@ function GPS(opts) {

// If necessary set default property values
this.fixed = opts.fixed || 6;
this.baud = opts.baud || breakout.baud || chip.baud;
this.baud = opts.baud || this.defaultBaud;
Copy link
Owner

Choose a reason for hiding this comment

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

Instead of making a new property, just do:

  DEFAULT: {
    baud: {
      writable: true,
      value: 9600
    },

and

  MT3339: {
    baud: {
      writable: true,
      value: 9600
    },

@dtex dtex merged commit 83ddd86 into rwaldron:master Apr 8, 2016
@rwaldron
Copy link
Owner

rwaldron commented Apr 8, 2016

👍 nice work dudes

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