Skip to content

Housekeeping: get rid of some magic numbers - #3605

Merged
mha1 merged 5 commits into
ExpressLRS:masterfrom
mha1:PR_magic_numbers
Apr 11, 2026
Merged

mha1 merged 5 commits into
ExpressLRS:masterfrom
mha1:PR_magic_numbers

Conversation

@mha1

@mha1 mha1 commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

changes:

  • replace channel value magic numbers with defines.

mha1 added 5 commits April 3, 2026 21:56
- removed the unnecessary UpgradeEepromV11()
- changed the pwm limits to the min/max PWM possible (stretch mode 476/2523) to avoid clipping in any of modes including stretched modes.
# Conflicts:
#	src/lib/CONFIG/config.cpp
#	src/lib/rx-crsf/RXParameters.cpp
@pkendall64 pkendall64 added house keeping 🧹 Cleanup of code and house keeping V4.1 🍑 labels Apr 7, 2026

@pkendall64 pkendall64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good, thanks Mickey

@mha1
mha1 merged commit 5f87c90 into ExpressLRS:master Apr 11, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

house keeping 🧹 Cleanup of code and house keeping V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants