Commit 6e7eced
committed
Enable SRXL2 ESC build behind USE_SRXL2_ESC
The SRXL2 ESC driver implementation was guarded by USE_SERIAL, a macro
that is not defined anywhere in INAV. As a result srxl2_esc.c always
compiled the empty stub: the driver never opened a port, never sent
throttle and never read telemetry, so the feature was dead code on every
target.
Introduce a dedicated USE_SRXL2_ESC feature macro (defined for targets
with more than 512 KB flash) and gate the driver and the
pwmCompleteMotorUpdate() call on it instead of the non-existent
USE_SERIAL.
Verified by building SPEEDYBEEF405WING (real implementation now compiled
and linked) and SITL.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GroYFi23gHDgj43xrTAVaY1 parent 5d935a0 commit 6e7eced
3 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| |||
0 commit comments