-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Added Spektrum SRXL2 to serialRXtypes #1559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/js/tabs/configuration.js
Outdated
|
|
||
|
|
||
| if (semver.gte(CONFIG.apiVersion, "1.42.0")) { | ||
| serialRXtypes.push('SPEKTRUM SRXL2'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since DJI_HDL_7MS and SPEKTRUM SRXL2 are both added in the same version you should add your push to that block, right after the DJI one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right. Did a force push with the change amended to last commit with the correction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look to the spi push elemnts a little later in the code. We use only one call to the push method passing all the elements needed. For coherence is better to maintain only one push and not one for element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look to the spi push elemnts a little later in the code. We use only one call to the push method passing all the elements needed. For coherence is better to maintain only one push and not one for element.
I've addressed the issue in the last commit. :)
src/js/tabs/configuration.js
Outdated
|
|
||
|
|
||
| if (semver.gte(CONFIG.apiVersion, "1.42.0")) { | ||
| serialRXtypes.push('SPEKTRUM SRXL2'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look to the spi push elemnts a little later in the code. We use only one call to the push method passing all the elements needed. For coherence is better to maintain only one push and not one for element.
SpektrumRC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Related to betaflight pull request
betaflight/betaflight#8606
New serial protocol option for Spektrum receivers