-
Notifications
You must be signed in to change notification settings - Fork 30
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
Print::println() line-ending is inconsistent with Arduino core (a documented change) #45
Comments
It's because I write a lot of EpoxyDuino programs that print to Serial, which is sent out to the stdout, which I redirect to a file, which is then processed by other scripts on Linux. The DOS encoding ( However, you make a good point that I'm surprised that you were affected by this change. This project has only ~35 stars, hardly anyone uses it. :-) |
That's great, thanks for the info and thanks for suggesting a flag. That flag will save people a lot of hassle I suspect, particularly for those who are testing the output precisely. BTW, I'll bet there are a lot of people using your library since it speeds up the dev/test cycle considerably. People may not have upgraded to V1.1.0 just yet so the issue may not be widely noticed yet. I'll keep an eye out for the update. Thanks again for your help. Bruce. |
…mine EOL character of Print::println(), see #45
Fixed by v1.2.0 |
Looks great, many thanks for the quick fix. My tests are passing again. 👍 |
Brian, FYI more people use EpoxyDuino than may actually realize it. For example I added a single automated unit testing example to contrem/arduino-timer, and the library owner took my example and ran with it. So -- indirectly -- they started taking advantage of your library. |
Interesting reference to contrem/arduino-timer. I find it interesting that the maintainer pinned EpoxyDuino and AUnit to specific commits: I guess I understand that this give stability. On the other hand, that version is really old, before UnixHostDuino got renamed to EpoxyDuino. So I wouldn't want other people to copy that. |
Thanks for an awesome library!
I'm noticing that the end-of-line convention in the Print class has been changed recently. The documentation in the release notes is clear and I realize that this is an expected change. However, it does break unit tests. I think the change could also break programs that parse the serial output of an Arduino program.
Isn't it desirable for the EpoxyDuino Print class be as similar to the "real" Print class as possible? Can you provide a bit of background on what the issue was that prompted change?
I'm trying to figure out how best to clean up breaking unit tests and knowing the full context of the change would be most helpful.
Thanks in advance!
The text was updated successfully, but these errors were encountered: