-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
usb powerdown #401
usb powerdown #401
Conversation
Does USB power need to be enabled in Serial.begin ? |
I think it must already be, because (a) the bootloader powers down USB and obviously Serial is working, and (b) I have the powerdown code in my HID library, and I can shut down HID and start up Serial and it just works. (One other thing that might be a good idea would be to move the USB interface reset code from the boards init file to Serial.begin(). But it doesn't seem necessary: I can switch between HID and Serial without it.) |
You seem to have pushed changes to loads of other unrelated files. I trick I use before committing and pushing, is to use
to determine the extend of the changes I am about to commit. And if there are files which have changed but I didnt intend them to change I use
|
Oops. Sorry! Each time I pull things from git, I have to change the attributes in tools/win to make the files executable on Windows, and I think all the extra changed files were files whose attributes got changed. I really don't know how to work with git. :-( Is there a way you can just accept the changes to the USB files? Of course, it would make things more convenient to you if you made the tools/win files executable as well, but that really should be a separate PR. |
It looks like your system is changing the permissions on file tools/win/bmp_upload.bat 100644 → 100755 Are you running Linux ? These are files in the tools/win folder, so I can't quite see how a Linux system would arbitrarily change them. The only way to partially accept a PR is to pull your PR to a local branch (I do this already), then pull all the individual files from my master, to overwrite your changes, then commit those changes then push the changes However as you changed 13 files of which 9 should not have been changed, I'd have to manually do that for 9 files Its probably easier for me to manually edit the files, but the whole point of a PR is so I don't need to spend time and effort and potentially add errors by manually updating files |
I've tried to use your PR and overwrite the unrelated changes to file permissions, but it makes things messy, because Git still sees the changes to permissions and the changes to all those binary files get made twice; which is not a good idea. I'll need to manually copy the 2 files you changed it my Master and commit them as if they were my change, as I cant see a better way to do it |
…permissions on unrelated files in the tools
I've manually copied your files and committed them myself. Please confirm that the commit included all the necessary files (because your PR included changes to 18 unrelated files) |
…ncluded changes to permissions on unrelated files in the tools
I will close this, as its already been implemented by me manually merging the code so that I just get the changes to usb.c |
…ncluded changes to permissions on unrelated files in the tools
USB should be powered down on Serial.end().