-
-
Couldn't load subscription status.
- Fork 1k
Change lexical scope serial #2309
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
Conversation
src/js/port_handler.js
Outdated
| callback(self.dfu_available); | ||
| } | ||
| if (!$('option:selected', self.portPickerElement).data().isDFU) { | ||
| if (!GUI.connected_to) { |
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 is this removed?
src/js/serial.js
Outdated
| self.getInfo(function (info) { | ||
| if (info) { | ||
| if (info.paused) { | ||
| self.getInfo(function (getInfo) { |
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.
This rename seems to make the code less intuitive and harder to read (getInfo would be a getter for info, and not for getInfo).
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.
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}`); |
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 is this removed?
src/js/serial_backend.js
Outdated
| else | ||
| $(".failsafeicon").removeClass('active'); | ||
| } | ||
| for (const index in FC.AUX_CONFIG) { |
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.
for ( of ) or leave as is.
|
Thanks. Fixed as requested per review |
|
SonarCloud Quality Gate failed.
|
No description provided.