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
Leonardo upload fix #37
Conversation
Reset leonardo and wait for the connection to be established.
A) Why isn't this committed to main yet? :)
I noticed that if the port was already set at 1200 baud, the reset would not occur, so I added in a little bit to switch it up to 57600 first. Cheers! |
This pull request doesn't cleanly merge with master anymore. If you can send a new pull request which merges with the current master without any issues, then I will merge it. |
1. Merge remote-tracking branch 'refs/remotes/sudar/master' Conflicts: .gitignore arduino-mk/Arduino.mk 2. reflected the advise from jaysonlarose. 3. I guess raw_eeprom should require `reset' on leonardo... I'm not sure.
I haven't tested it yet, so I don't know if this works. .. by the way, do you know how to prevent the commit from automatically sending a pull request? |
Let me know once you have done the testing. If it works, then I will merge the pull request
If you have created a pull request with a branch, then any commit you make to that branch after that will be referenced in the pull request. Generally it is a good idea to create a separate branch and then send pull request to that branch with just the code changes which you want. This way you can continue to do your personal/normal changes in the master branch. |
thanks sudar, I will create a new personal branch after these commits. In today's commits above, I confirmed it successfully uploads programs to leonardo. TODO: MacOSX stuff (reset_stty) |
Sorry @guicho271828 this still doesn't merge cleanly with the current master.. May be you might have to do pull the latest master and the apply your changes on top of it. Also check #33. It touched lot of code which is also touched by your commits. |
As for erroring out on a leonardo with a raw_ command, perhaps it makes more sense to add something like:
(add more raw_targets if needed). This doesn't need modification of the actual targets and dependencies, keeping those a bit more clear. |
|
@matthijskooijman I agree. thank you for your advice. |
I merged sudar/master again. |
Because of all the merging, conflicting changes and fixes to your own code, it's now hard to see what you're patches actually change to the code. I would suggest you create a clean new set of patches, based on sudar's most recent master branch. Possibly git rebase can help you here, though it might create so many conflicts that it would be easier to just start over. For the latter, you could try "git reset origin/master" to reset your branch, but not your working copy, to sudar's master, and then use git add -p to commit the relevant bits in separate patches (if needed, perhaps one big patch would also be ok?) |
Yes, it is very difficult to see the changes. Also you might have to close this pull request and open a new one with your patch, so we can cleanly see what is getting changed.
Do let me know if you need any help with git or github. If it is too overwhelming for you, then you can send me your current working directory as a zip file and I can generate the patches for you. |
AFAIU, you can also just use git push -f to force push into the branch that generated this pullrequest, and github will remove the old commits from it and just show the new ones. |
thank you both. so the point is: difficult to see the changes.
I follow this advice first. |
@guicho271828 I had a look at your repo and I found three changes
Out of this, I guess the 2 and 3rd changes are for your personal use. It would be nice if you can send a pull request for the first change alone. If you are still struggling with git/github, then let me know and I can create a patch on your behalf. |
@guicho271828 I took your code changes for leonardo and created a separate branch. Check it out at https://github.com/sudar/Arduino-Makefile/tree/leonardo I tested it with both my Uno and Leonardo and it seems to be working fine. Can you also check if it works? I will merge it with the master branch once you confirm it. |
Reset leonardo and wait for the connection
to be established.