Skip to content
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

modbus: add an option to disable log #3035

Merged
merged 1 commit into from
Mar 25, 2025
Merged

Conversation

raiden00pl
Copy link
Member

Summary

Introduce new configuration option that allow disable all logging functionality for FreeModBus. This option is useful for small systems when we don't use any logging features.

Impact

fix broken compilation when FILE_STREAM is disabled

Testing

local modbus RTU configuration with file streams disabled

Introduce new configuration option that allow disable all logging functionality for FreeModBus.
This option is useful for small systems when we don't use any logging features.

Signed-off-by: raiden00pl <[email protected]>
@raiden00pl
Copy link
Member Author

nxstyle failure is expected because freemodbus is not compatible with NuttX coding style

Copy link
Contributor

@cederom cederom left a comment

Choose a reason for hiding this comment

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

Thank you @raiden00pl :-) Yup camel case is ModBus implementation :-)

@raiden00pl raiden00pl closed this Mar 25, 2025
@raiden00pl raiden00pl deleted the modbus_log branch March 25, 2025 10:02
@cederom
Copy link
Contributor

cederom commented Mar 25, 2025

Why close not merge @raiden00pl ?? :D

@raiden00pl raiden00pl restored the modbus_log branch March 25, 2025 14:26
@raiden00pl
Copy link
Member Author

oops, I accidentally deleted an unmerged branch :P restored now

@raiden00pl raiden00pl reopened this Mar 25, 2025
@cederom
Copy link
Contributor

cederom commented Mar 25, 2025

Will merge when CI finished just to keep things clean :-)

Lint fail comes from FreeModBusMixedCaseImplementation :-)

@cederom cederom merged commit e280e9b into apache:master Mar 25, 2025
76 of 78 checks passed
@cederom
Copy link
Contributor

cederom commented Mar 25, 2025

@jerpelea backporting to 12.9? :-)

@jerpelea
Copy link
Contributor

@jerpelea backporting to 12.9? :-)

sadly no
this is an enhancement not a fix

@raiden00pl raiden00pl deleted the modbus_log branch March 26, 2025 13:36
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.

6 participants