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
Fix profile switching #2998
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Do you want to test this code? Here you have an automated build: |
AUTOMERGE: (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); |
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.
Why we need a timer here now @haslinghuis ?
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.
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) {
Fixes: #2997