Skip to content

drivers/mrf24j40: replace && with || in TX power validation#21904

Merged
benpicco merged 1 commit intoRIOT-OS:masterfrom
Stopkaa:drivers/mrf24j40
Nov 21, 2025
Merged

drivers/mrf24j40: replace && with || in TX power validation#21904
benpicco merged 1 commit intoRIOT-OS:masterfrom
Stopkaa:drivers/mrf24j40

Conversation

@Stopkaa
Copy link
Copy Markdown
Contributor

@Stopkaa Stopkaa commented Nov 21, 2025

Fix TX power range check in MRF24J40 driver

I encountered incorrect checking logic in config_phy function.
The current logic using && is impossible to satisfy - a value cannot be both less than
the minimum AND greater than the maximum.

@Stopkaa Stopkaa requested a review from bergzand as a code owner November 21, 2025 11:20
@github-actions github-actions bot added the Area: drivers Area: Device drivers label Nov 21, 2025
@crasbe crasbe added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 21, 2025
@riot-ci
Copy link
Copy Markdown

riot-ci commented Nov 21, 2025

Murdock results

✔️ PASSED

27ceb0e drivers/mrf24j40: replace && with || in TX power validation

Success Failures Total Runtime
10932 0 10932 10m:18s

Artifacts

@benpicco benpicco enabled auto-merge November 21, 2025 13:23
@benpicco benpicco added this pull request to the merge queue Nov 21, 2025
Merged via the queue into RIOT-OS:master with commit 47ecbc1 Nov 21, 2025
28 checks passed
@leandrolanzieri leandrolanzieri added this to the Release 2026.01 milestone Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: drivers Area: Device drivers CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants