Skip to content
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

Fix profile switching #2998

Merged
merged 1 commit into from Sep 17, 2022
Merged

Conversation

haslinghuis
Copy link
Member

Fixes: #2997

@haslinghuis haslinghuis added this to the 10.9.0 milestone Aug 18, 2022
@haslinghuis haslinghuis self-assigned this Aug 18, 2022
@sonarcloud
Copy link

sonarcloud bot commented Aug 18, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link
Contributor

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

@blckmn
Copy link
Member

blckmn commented Aug 19, 2022

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> PASS
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

@@ -2494,12 +2493,12 @@ pid_tuning.initialize = function (callback) {
self.updating = false;

// enable RC data pulling for rates preview
GUI.interval_add('receiver_pull', self.getReceiverData, true);
GUI.interval_add('receiver_pull', self.getReceiverData, 250, true);
Copy link
Member

Choose a reason for hiding this comment

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

Why we need a timer here now @haslinghuis ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was missing a timer (bug) in the interval code. Without type checking like TS, JS did allow it to run.

Function is defined as

GuiControl.prototype.interval_add = function (name, code, interval, first) {

@haslinghuis haslinghuis moved this from Configurator to Ready to merge in Finalizing Firmware 4.4 Release Aug 31, 2022
@blckmn blckmn merged commit e946ed3 into betaflight:master Sep 17, 2022
Finalizing Firmware 4.4 Release automation moved this from Ready to merge to Closed Sep 17, 2022
@haslinghuis haslinghuis deleted the fix-profile-switching branch September 18, 2022 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

chosen rates profile doesn't refresh on aux value change setup in adjustments tab (works on configurator 10.8)
3 participants