1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 00:35:26 +03:00

Fix rateprofiles not working after saving (#1639)

Fix rateprofiles not working after saving
This commit is contained in:
Michael Keller 2019-09-11 00:22:35 +12:00 committed by GitHub
commit d155ce035a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -298,7 +298,7 @@ TuningSliders.calculateNewPids = function() {
PID_names.forEach(function(elementPid, indexPid) {
let searchRow = $('.pid_tuning .' + elementPid + ' input');
searchRow.each(function (indexInput) {
if (indexPid < 3) {
if (indexPid < 3 && indexInput < 3) {
$(this).val(PIDs[indexPid][indexInput]);
}
});