Skip to content

Custom MAX_DATA_LEN - #15

Merged
gabryelreyes merged 12 commits into
mainfrom
feature/max_payload_size
Feb 27, 2026
Merged

gabryelreyes merged 12 commits into
mainfrom
feature/max_payload_size

Conversation

@gabryelreyes

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR makes MAX_DATA_LEN configurable (overrideable at compile time) and normalizes formatting/line endings across tests, examples, docs, and CI files.

Changes:

  • Allow overriding MAX_DATA_LEN via preprocessor (#ifndef MAX_DATA_LEN ... #endif).
  • Reformat/normalize line endings across tests, examples, docs, and GitHub workflows.
  • No intended behavioral changes in tests/examples beyond the above (but see review comments for issues found in touched files).

Reviewed changes

Copilot reviewed 1 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/SerialMuxProtCommon.hpp Makes MAX_DATA_LEN overrideable (core purpose of PR).
test/common/TestStream.h Formatting changes; touched code includes readBytes() implementation used by tests.
test/test_SerialMuxProt/test_SerialMuxProt.cpp Formatting changes; test callback declaration/docs touched.
test/common/Stream.h Formatting/line-ending normalization only.
test/common/Print.h Formatting/line-ending normalization only.
examples/ServerA/main.cpp Formatting/line-ending normalization only.
examples/ServerB/main.cpp Formatting/line-ending normalization only.
examples/SerialMuxChannels.h Formatting/line-ending normalization only.
examples/README.md Formatting/line-ending normalization only.
doc/uml/SyncSequence.puml Formatting/line-ending normalization only.
doc/uml/SubscribeSequence.puml Formatting/line-ending normalization only.
.github/workflows/release.yml Formatting; workflow display name touched.
.github/workflows/ci.yml Formatting/line-ending normalization only.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/common/TestStream.h Resolved
Comment thread src/SerialMuxProtCommon.hpp Resolved
Comment thread .github/workflows/release.yml Resolved
gabryelreyes and others added 2 commits February 27, 2026 14:25
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI commented Feb 27, 2026

Copy link
Copy Markdown
Contributor

@gabryelreyes I've opened a new pull request, #16, to work on those changes. Once the pull request is ready, I'll request review from you.

gabryelreyes and others added 6 commits February 27, 2026 14:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…load)

Co-authored-by: gabryelreyes <66941456+gabryelreyes@users.noreply.github.com>
Co-authored-by: gabryelreyes <66941456+gabryelreyes@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Add static_assert to guard MAX_DATA_LEN against control channel underflow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 14 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/common/TestStream.h
DESCRIPTION
*******************************************************************************/
/**
* @brief Stream Module for uint testing

Copilot AI Feb 27, 2026

Copy link

Choose a reason for hiding this comment

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

The Doxygen brief says "uint testing" which reads like a typo (it should likely be "unit testing"). Please fix the wording to avoid confusion in generated docs.

Suggested change
* @brief Stream Module for uint testing
* @brief Stream Module for unit testing

Copilot uses AI. Check for mistakes.
Comment thread test/common/TestStream.h Resolved
@gabryelreyes gabryelreyes linked an issue Feb 27, 2026 that may be closed by this pull request
@gabryelreyes
gabryelreyes merged commit f180924 into main Feb 27, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make MAX_DATA_LEN overwriteable

3 participants