-
-
Notifications
You must be signed in to change notification settings - Fork 933
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 gps_rescue_min_dth #3544
Fix gps_rescue_min_dth #3544
Conversation
77c08f1
to
d6a3107
Compare
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_46)) { | ||
$('input[name="gps_rescue_min_dth"]').attr("min", 10); | ||
} | ||
|
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 cleaner to "join" in some way with the earlier if, because both affect the same paremeter. Maybe a simply else
or a binary conditional operator or similar is enough.
26f50ef
to
980c524
Compare
This comment has been minimized.
This comment has been minimized.
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.
The code is far better but, we are sure about the values? Master seems 10, version 4.4 seems 20, version 4.3 seems 50. We support version 4.3? I suppose that yes. Then this binary must be only for version greater than 4.3, I suppose that 50 is the real value in the HTML code.
980c524
to
33046d3
Compare
Kudos, SonarCloud Quality Gate passed!
|
Do you want to test this code? Here you have an automated build: |
Closes #3542
Closes #3546