Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Contribution description
The first change is to improve the visibility of incoming CRs (carriage return). They will now be shown as
\r
. Also, the LF (that usually comes after a CR) is now shown inside[
..]
, not after the closing]
.The second change is a re-implementation of PR20128. I hope that @benpicco is not offended by it. I had this change lying around for more than a year, sorry about that. I want to include the change in the current PR because I consider the code in PR20128 too "hackish".
Testing procedure
I've tested the change on a
sodaq-sara-sff
board which has a Ublox SARA N310. For that a few extra steps are needed because the Ublox needs two pins to beON
, plus one pin needs to be toggled low for roughly one second. Otherwise the Ublox remains off.After that:
init 1 38400
eol_cr
send 1 AT
Here is an example what you can expect.
Issues/PRs references
None