Repository navigation
Conversation
…e mixer A count that matches the mixer is the normal state, and a line saying so on every board hid the one case where the figures matter. The line now appears only with no mixer set or a port left over, and never beside a warning that already carries the numbers. The wiring note is shorter.
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by QodoShow Smart ESC port counts only when they need attention
AI Description
Diagram
High-Level Assessment
Files changed (3)
|
Code Review by Qodo
1.
|
They read nothing from the tab's closure, and SonarCloud counts them as nested too deeply inside initialize.
|
Configurator test build ready — commit Download build artifacts for PR #2829 Available platforms (scroll to the Artifacts section at the bottom of the run page):
|
The count line's new wording and the shorter wiring note, with the orphan srxl2PortCount removed there as well.
|



The Spektrum Smart ESC box in the Outputs tab printed "SRXL2 ports open on the board: 1, for 1 motor(s). Motor 1 uses the lowest-numbered port." on every board, including the ones where the count was exactly right. A line that reports the normal state is noise, and it buried the one case where the figures matter.
The box is now quiet when the ports the board opened match the mixer's motor count. The count line appears only when the mixer has no motors yet, so the board cannot be checked against it, or when more ports are open than motors, where it now says that the extra ports drive nothing. The warnings for no port, a port assigned but not opened, and too few ports are unchanged, and while one of them shows the count line stays hidden, so the numbers are not printed twice. The wiring note is shorter, and still says that motor 1 is the lowest-numbered port. The locale key
srxl2PortCounthad no user left and is removed from the English file.While the board has not answered the status request yet, the line stays hidden instead of showing the count assigned in the tab; that state ends with the first reply, and the warning for a missing port still shows.
Testing
Packaged build against the SITL of the same firmware,
motor_pwm_protocol = SRXL2, airplane mixer with one motor:yarn test: everything passes except the MZTC sender scan, which fails on Windows for the path separator independently of this change (#2826 fixes it).#2814 touches the same block and will need a restack once this is merged.