这是indexloc提供的服务,不要输入任何密码
Skip to content

trice log -p FILEBUFFER -args filename does not come to an end at the file end #284

@rokath

Description

@rokath

Discussed in #253

The problem: Using the Read method on a file which is filled externally, lets the trice tool trying again and again.
In the FILEBUFFER case, the COBS Read could return internally (0, nil) without reaching the end. As workaround the function decodeAndComposeLoop now contains a timeout of 100ms for the FILEBUFFER case. A better solution would give the newCOBSDecoder function and its relatives an aditional parameter, telling them if the data source is endless (like an UART) or has an end (like the FILEBUFFER). In the FILEBUFFER case there is a 2nd open qustion: Trices are printed out only if a line is complete ("\n"). A line can consist of several Trices. If the FILEBUFFER´s last Trice messages are without "\n", they would not displayed. To avoid that, a newline is added at the end. So the last displayed line of a FILEBUFFER could be incomplete.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions