-
-
Notifications
You must be signed in to change notification settings - Fork 801
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue with a "wrong" timestamp in device monitor output usin…
…g `"time" filter` // Resolve #3712
- Loading branch information
1 parent
0bbe7f8
commit 96b1a1c
Showing
2 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96b1a1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better and solves the issue, but can text include more than one line, e.g.:
´this_is_a_line_\n_and_this_is_the_next´
in which case there would be no timestamp in front of "_and_this_is_the_next", but maybe the serial data always is separated by \n ?
Thanks for looking into this.
96b1a1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you mean? See a test code:
and output
96b1a1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are perfectly right. I misread the code - sorry for that and the trouble - and thanks again for fixing this. Will help a lot debugging code with correct timestamps. Thanks.
PS: And thanks for suggesting me to fix it myself - I would have tried - you were just too fast :-)
96b1a1c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy coding with PlatformIO! ;)