Skip to content

Conversation

@SpektrumRC
Copy link

Related to betaflight pull request
betaflight/betaflight#8606

New serial protocol option for Spektrum receivers



if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
serialRXtypes.push('SPEKTRUM SRXL2');
Copy link
Contributor

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.

Copy link
Author

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

Copy link
Member

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.

Copy link
Author

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. :)



if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
serialRXtypes.push('SPEKTRUM SRXL2');
Copy link
Member

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.

@mikeller mikeller added this to the 10.6.0 milestone Aug 7, 2019
@mikeller mikeller added the RN: UI label Aug 7, 2019
Copy link
Author

@SpektrumRC SpektrumRC left a comment

Choose a reason for hiding this comment

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

Done

@mikeller mikeller merged commit 3a0e183 into betaflight:master Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants