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

Bug in i2cdevlib/RP2040/I2Cdev/I2Cdev.cpp I2Cdev::readWords() does not work #718

Open
alphatech56 opened this issue Nov 24, 2022 · 4 comments

Comments

@alphatech56
Copy link
Contributor

in I2Cdev::readWords() line 183 code J+2
should be j += 2

@alphatech56
Copy link
Contributor Author

I have fix, but can't push.

@jrowberg
Copy link
Owner

You're the second person in a week or so who has noted that they can't push a change. Normally, this works fine for this repo, and I haven't changed anything about the repo permissions recently. Can you clarify what steps you have tried, and what errors you're receiving? (Obviously the fix you've noted here is easy enough for me to make, but I'd like to figure out why you can't do a merge request.)

@alphatech56
Copy link
Contributor Author

alphatech56 commented Nov 25, 2022 via email

@jrowberg
Copy link
Owner

Ah, I see the problem. You can't push directly to someone else's repository unless you're added by the repo owner as a contributor with write permissions. This page describes the standard Github contribution workflow:

https://jarv.is/notes/how-to-pull-request-fork-github/

...which goes something like this:

  1. Fork the original repo
  2. Clone your new forked repo
  3. Create a branch in your repo specifically for your fix(es)
  4. Apply/commit/push your changes to that branch
  5. Submit a pull request so the original repo owner can review and merge your changes

It takes a bit of effort the first couple of times, but it makes sense after you step through it, and it gives you credit for your changes if your commits are merged.

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

No branches or pull requests

2 participants