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

Fix line break for debug output #488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sualko
Copy link

@sualko sualko commented Oct 31, 2019

If you use screen to listen for the serial output, you see something like this:

message
       message

This is because only a Line Feed and no Carriage Return is send. \r\n is also the default for the Arduino print class (Print.cpp) and it's also documented in avr-libc stdio.

@terrillmoore
Copy link
Member

Thanks for your contribution.

I'm going to have to think about this. It's a deliberate decision not to do this, based on being critically low on space, and based on it being trivial to configure terminal programs to map \n to \r\n.

Best regards,
--Terry

@terrillmoore terrillmoore self-assigned this Oct 31, 2019
@sualko
Copy link
Author

sualko commented Oct 31, 2019

If you like I can also introduce a new config macro to include/exclude those lines.

based on it being trivial to configure terminal programs to map \n to \r\n

At least for screen I found no easy solution to do that.

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