Skip to content

fix: restore git authorship for community contributors (PR #87, #90, #99)#106

Open
zknpr wants to merge 4 commits intoepsilonrt:devfrom
zknpr:fix/attribution-community-prs
Open

fix: restore git authorship for community contributors (PR #87, #90, #99)#106
zknpr wants to merge 4 commits intoepsilonrt:devfrom
zknpr:fix/attribution-community-prs

Conversation

@zknpr
Copy link
Copy Markdown
Contributor

@zknpr zknpr commented Feb 16, 2026

Summary

PR #100 reimplemented functionality from three community PRs instead of cherry-picking the original commits, which meant the original authors lost git authorship credit. This PR fixes that by re-attributing each feature to its original contributor.

Attribution fixes

Feature Original PR Author
Check modbus_set_slave() return value #87 @r00t- (Thorben T.)
-x hex address option #90 @ciakval (Jan Remes)
-Q / -X quirks options #99 @JesseRiemens (Jesse Riemens)

Approach

For each feature:

  1. Temporarily revert the feature in a single commit
  2. Re-add it using git commit --author="Original Author <email>" so git properly records authorship

The final tree is byte-identical to dev — verified with git diff dev producing empty output. No functional changes.

Note to maintainer

Please use "Create a merge commit" or "Rebase and merge" (not "Squash and merge") so that the individual author attributions are preserved in the git history.

Apology

I should have cherry-picked the original commits instead of reimplementing them. This PR corrects the git history to ensure these contributors receive proper credit for their work. My apologies to @r00t-, @ciakval, and @JesseRiemens.

zknpr and others added 4 commits February 16, 2026 11:46
…ibution

Remove the implementations of:
- modbus_set_slave() return value checking (originally PR epsilonrt#87 by @r00t-)
- -x hex address option (originally PR epsilonrt#90 by @ciakval)
- -Q/-X quirks options (originally PR epsilonrt#99 by @JesseRiemens)

These features will be re-added in subsequent commits with proper git
authorship attributed to their original contributors.
libmodbus considers some slave addresses invalid. It will report an
error, but mbpoll previously ignored this, leading to a crash with
an assertion failure.

Adds return value checking to all three modbus_set_slave() call sites
(write path, read path, and report slave ID). The read path also adds
a modbus_get_slave() cache check to avoid redundant calls.

Originally contributed in PR epsilonrt#87; adapted to the current codebase.
Add -x command-line option to print register/coil addresses in
hexadecimal format (0x%04X) instead of decimal. Useful for debugging
devices with hex-addressed register maps.

Originally contributed in PR epsilonrt#90; adapted to the current codebase.

Signed-off-by: Jan Remes <jan.remes@mycroftmind.com>
Add support for MAX_SLAVE (-Q) and REPLY_TO_BROADCAST (-X) quirks:
- -Q: Accept slave addresses 0-255 (bypasses libmodbus default limit)
- -X: Force reply to broadcast address requests

Requires libmodbus >= 3.1.7 for modbus_enable_quirks() API.

Originally contributed in PR epsilonrt#99; adapted to the current codebase.
@zknpr zknpr force-pushed the fix/attribution-community-prs branch from d0d4319 to 7643aa9 Compare February 16, 2026 10:53
@r00t-
Copy link
Copy Markdown

r00t- commented Feb 19, 2026

it's an improvement. 👍
i did not ask for an apology, just still wondering what's going on here.
(i'll leave it to philosophers to discuss the question of a machine-generated apology having any value.)

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.

4 participants