Skip to content

Commit f7630e8

Browse files
authored
Merge pull request #1983 from Asizon/fix_auto-smoothness_max
2 parents b416ada + 73707e7 commit f7630e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/js/tabs/receiver.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,10 @@ TABS.receiver.initialize = function (callback) {
265265
RX_CONFIG.rcInterpolationInterval = parseInt($('input[name="rcInterpolationInterval-number"]').val());
266266
}
267267

268+
if (semver.gte(CONFIG.apiVersion, "1.42.0")) {
269+
RX_CONFIG.rcSmoothingAutoSmoothness = parseInt($('input[name="rcSmoothingAutoSmoothness-number"]').val());
270+
}
271+
268272
function save_rssi_config() {
269273
MSP.send_message(MSPCodes.MSP_SET_RSSI_CONFIG, mspHelper.crunch(MSPCodes.MSP_SET_RSSI_CONFIG), false, save_rc_configs);
270274
}
@@ -426,9 +430,6 @@ TABS.receiver.initialize = function (callback) {
426430
$('select[name="rcSmoothing-input-manual-select"]').change();
427431

428432
var rc_smoothing_auto_smoothness = $('input[name="rcSmoothingAutoSmoothness-number"]');
429-
rc_smoothing_auto_smoothness.change(function() {
430-
RX_CONFIG.rcSmoothingAutoSmoothness = $(this).val();
431-
});
432433
rc_smoothing_auto_smoothness.val(RX_CONFIG.rcSmoothingAutoSmoothness);
433434
} else {
434435
$('.tab-receiver .rcSmoothing-auto-smoothness').hide();

0 commit comments

Comments
 (0)