Commit 0641b2d
committed
fix: remove duplicate autotrim macro definitions from servos.c
Commit 58dc107 re-added SERVO_AUTOTRIM_FILTER_CUTOFF and related
constants to servos.c as local #defines, but they were already moved
to servos.h by a prior refactor (dcc404e). The duplicate caused a
build error: the .c definition used integer 1 while the header has
1.0f, triggering -Werror,-Wmacro-redefined on all targets.
Remove the redundant block from servos.c and add the one genuinely
new constant (SERVO_AUTOTRIM_ITERM_RATE_LIMIT) to servos.h alongside
the existing autotrim constants.1 parent ac6135d commit 0641b2d
2 files changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | 610 | | |
618 | 611 | | |
619 | 612 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
0 commit comments