Skip to content

Conversation

@haslinghuis
Copy link
Member

No description provided.

callback(self.dfu_available);
}
if (!$('option:selected', self.portPickerElement).data().isDFU) {
if (!GUI.connected_to) {
Copy link
Member

Choose a reason for hiding this comment

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

Why is this removed?

src/js/serial.js Outdated
self.getInfo(function (info) {
if (info) {
if (info.paused) {
self.getInfo(function (getInfo) {
Copy link
Member

Choose a reason for hiding this comment

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

This rename seems to make the code less intuitive and harder to read (getInfo would be a getter for info, and not for getInfo).

Copy link
Member Author

Choose a reason for hiding this comment

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

info is already used in upper scope. Like to have an exclusive object for the function. Changed it to _info

src/js/serial.js Outdated
}

console.log(`${self.connectionType}: send buffer overflowing, dropped: ${counter} ${entries}`);
console.log(`${self.connectionType}: send buffer overflowing, dropped: ${counter}`);
Copy link
Member

Choose a reason for hiding this comment

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

Why is this removed?

else
$(".failsafeicon").removeClass('active');
}
for (const index in FC.AUX_CONFIG) {
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

Thanks. Fixed as requested per review

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.

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
22.0% 22.0% Duplication

@mikeller mikeller added this to the 10.8.0 milestone Dec 15, 2020
@mikeller mikeller merged commit fec94e7 into betaflight:master Dec 15, 2020
@haslinghuis haslinghuis deleted the serial branch December 15, 2020 15:52
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