Skip to content

Conversation

@haslinghuis
Copy link
Member

No description provided.

// Add a name to each row of PIDs if empty
$('.pid_tuning tr').each(function(){
for(i = 0; i < FC.PID_NAMES.length; i++) {
for (const i in FC.PID_NAMES) {
Copy link
Member

Choose a reason for hiding this comment

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

for ( of ) or leave as is.

} else {
console.log(`Unsupported API version: ${FC.CONFIG.apiVersion}`);
}
return promise;
Copy link
Member

Choose a reason for hiding this comment

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

Why was this removed?

var rateCurveUpdateRequired = false;
for(var i=0; i<this.oldRC.length; i++) { // has the value changed ?
let rateCurveUpdateRequired = false;
for (let i=0; i<this.oldRC.length; i++) { // has the value changed ?
Copy link
Member

Choose a reason for hiding this comment

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

Whitespace. 👾

Copy link
Member Author

Choose a reason for hiding this comment

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

👾


// check that the balloon does not already overlap
for(var i=0; i<dirty.length; i++) {
for(const i in dirty) {
Copy link
Member

Choose a reason for hiding this comment

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

for ( of ) or leave as is.

}
// then display them on the chart
for(var i=0; i<balloons.length; i++) balloons[i].balloon();
for(const i in balloons) {
Copy link
Member

Choose a reason for hiding this comment

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

for ( of ) or leave as is.

@haslinghuis
Copy link
Member Author

Fixed as requested per review. Added fixing spaces in several places to be more consistent.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mikeller mikeller added this to the 10.8.0 milestone Dec 14, 2020
@mikeller mikeller merged commit e827a97 into betaflight:master Dec 14, 2020
@haslinghuis haslinghuis deleted the tuning branch December 14, 2020 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants