Skip to content

Conversation

@atomgomba
Copy link
Contributor

During review I discovered on the modes tab visible elements are updated every 50ms for no reason. This is a performance improvement to update the modes only when the "Hide unused modes" is toggled.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
3.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2024

Do you want to test this code? Here you have an automated build:
Betaflight-Configurator-Android
Betaflight-Configurator-Linux
Betaflight-Configurator-Windows
Betaflight-Configurator-macOS
WARNING: It may be unstable and result in corrupted configurations or data loss. Use only for testing!

@HThuren HThuren self-requested a review March 2, 2024 19:55
Copy link
Member

@HThuren HThuren left a comment

Choose a reason for hiding this comment

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

Test with radio connected, an improtant case -> OK

@atomgomba
Copy link
Contributor Author

It has nothing to do with the outside world, it's merely a GUI thing. Channel value markers and mode on/off states are still updated unconditionally at every 50ms tick

@haslinghuis haslinghuis merged commit 67ce7fd into betaflight:master Mar 2, 2024
@HThuren
Copy link
Member

HThuren commented Mar 2, 2024

It has nothing to do with the outside world, it's merely a GUI thing. Channel value markers and mode on/off states are still updated unconditionally at every 50ms tick

right, anyway test when mode value change do no harm

chmelevskij pushed a commit to chmelevskij/betaflight-configurator that referenced this pull request Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: COMPLETED

Development

Successfully merging this pull request may close these issues.

3 participants