-
Notifications
You must be signed in to change notification settings - Fork 428
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
Formatting issue of debug output in terminal #1398
Comments
You may want to learn about line endings over serial - there are three combinations and you need to tell your command line software which one to translate in to line endings for the terminal. |
But the line endings over serial should be constant. I am using serial with other projects and esp32 or other MCU's but never had such a issue. Serial simply always worked and was correctly formatted. Here its not. The normal output have correct formatting but the debugging have not. Or to say it with 'line endings over serial': they should be consistent independent if debugging is enabled or not. |
RadioLib uses @jgromes up to you to add |
I vote for adding this \r . Having things just working with as much compatibility as possible is always a good thing. It seems to be already like this on the normal, non-debug output. So lets have this like this also at the debug output. |
I think I know what's going on now - @serialrf433 is using Arduino, which uses CR+LF for Internally, RadioLib consistently uses LF only. That being said, there is a lot of users of RadioLib on Arduino, so I will do two things:
|
Did you just call PuTTY not well-behaved @jgromes? ;) |
Describe the bug
I enabled debugging to get more interesting output. The formatting of this output that i get out of the serial does not look like it should.
The normal output is correctly formatted [Radio]... . Its just the debugging output that does not look correctly.
To Reproduce
remove the // in the 4 lines before the #define
https://github.com/jgromes/RadioLib/blob/master/src/BuildOptUser.h
Expected behavior
Line1
Line2
Line3
Line4
...
Screenshots
![Image](https://private-user-images.githubusercontent.com/196084221/406758173-23e4c36f-e793-4c3a-adc2-23143e17dc59.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1MzA0MzgsIm5iZiI6MTczOTUzMDEzOCwicGF0aCI6Ii8xOTYwODQyMjEvNDA2NzU4MTczLTIzZTRjMzZmLWU3OTMtNGMzYS1hZGMyLTIzMTQzZTE3ZGM1OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNFQxMDQ4NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjNiMTIzNmRhZTQ0MTEyZDk4YjdhOGI4M2Q5ZmU5MTU0ZTEwNGNhOTUyMWJlZDBkZmNkZTJhNGRkN2YyY2I3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.HfHd0OUSy4Q3KWP023GDUUL5BGfx9WZf6to3EW0dg-s)
Additional info (please complete):
The text was updated successfully, but these errors were encountered: