Skip to content

Conversation

@eriksiers
Copy link

@eriksiers eriksiers commented Apr 25, 2024

This includes the changes made in my previous (closed) pull request, and incorporates suggested changes made to serial_is_port_open() -- except instead of using 'true', 'false', etc., I just return the value of the 'open' member of the serial_struct (so effectively an explicit 0 or 1).

@eriksiers
Copy link
Author

I just realized that the diff shows changes to the entire file, but the actual changes (this time) are just to serial_is_port_open(). Sorry, I'm not very great with github.

@kstenerud
Copy link
Owner

Huh that's strange... I wonder why git is doing that?

Oh actually it might be the line endings. see. https://stackoverflow.com/questions/19593909/git-diff-sees-whole-file-as-changed-when-its-not

So you should be able to git config --global core.autocrlf true and then recreate the commits.

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.

2 participants