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

Add flag to disable CYCLE_ERROR in log #542

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

Merged
merged 2 commits into from
Jul 1, 2025

Conversation

dbeliavskij
Copy link
Contributor

This PR adds a flag -noCycle for trice log tool to disable cycle errors

The use case:

When routing certain Trice by their ID to some other medium (for example storing error trices in flash) and later parsing the log it would result in constant CYCLE_ERROR messages. This flag allows to suppress these messages

@rokath
Copy link
Owner

rokath commented Jun 30, 2025

Thanks for this proposal, @dbeliavskij. Would not #define TRICE_CYCLE_COUNTER 0 in your project specific triceConfig.h solve your case?

Of course, if you wish to have cycle counter checks normally and to suppress those checks on a Trices subset later, this flag makes sense.

If you agree, I would accept this pull request, but rename the switch into -noCycleCheck or an other more descriptive name.

@dbeliavskij
Copy link
Contributor Author

Yes, your proposed naming is clearer, I've pushed the commit with the change

Copy link
Owner

@rokath rokath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@rokath rokath merged commit 421b75a into rokath:master Jul 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants