-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Enable erase_chip by default #3701
Conversation
This comment has been minimized.
This comment has been minimized.
d16bc6b
to
29b347c
Compare
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
c7d7531
to
4659b30
Compare
This comment has been minimized.
This comment has been minimized.
src/js/tabs/firmware_flasher.js
Outdated
if (result.erase_chip) { | ||
if (result.erase_chip === undefined) { | ||
$('input.erase_chip').prop('checked', true); | ||
} else { | ||
$('input.erase_chip').prop('checked', false); | ||
$('input.erase_chip').prop('checked', result.erase_chip); | ||
} |
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.
I think is better to "overcharge" the getConfig() method with this code, adding a second "optional" parameter as "default". If configured, and undefined, then return the default. In this way we can do the same for others parameters if we want. What do you think?
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.
Agree, its a better option, but then we have to change them all.
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 all? If the parameter is optional, we don't need to change others.
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.
Took a shot at it. Please have a look again.
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.
Seems good to me 😉 thanks!
4659b30
to
ecfe9f3
Compare
This comment has been minimized.
This comment has been minimized.
ecfe9f3
to
b296772
Compare
This comment has been minimized.
This comment has been minimized.
b296772
to
b67ffa2
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
ba15112
to
ddeb8a1
Compare
This comment has been minimized.
This comment has been minimized.
ddeb8a1
to
4682312
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Can I confirm the expected behaviour after this PR is as follows:
In the fourth possibility, that a user turns |
That behavior was covered by the first commit. |
tested
further findings. seems flashing significantly disparate firmware version, it will still erase chip even if disabled. edit: this may be a factor of some PG change affecting the entire eeprom. |
To cover point 4 - setting default enabled value in main.js instead of in firmware flasher tab would allow for session wide behavior. |
i am okay with current behavior. unsure what others desire. |
This comment has been minimized.
This comment has been minimized.
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
Do you want to test this code? Here you have an automated build: |
When migrating from previous version this settings was reported to disabled by default.