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 out of bounds error in pid_tuning #2343
Conversation
b0f2217
to
ee4e8ef
Compare
src/js/tabs/pid_tuning.js
Outdated
@@ -2412,7 +2412,7 @@ TABS.pid_tuning.updateRatesLabels = function() { | |||
); | |||
} | |||
// then display them on the chart | |||
for (let i = 0; i <= balloons.length; i++) { | |||
for (let i = 0; i < balloons.length; i++) { |
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.
These could easily be done as for ( of )
:
for (balloon of balloons) {
balloon.balloon();
}
same for the above.
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.
ee4e8ef
to
88aa7e1
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fixes two index out of bounds errors in PID Tuning tab.