From 5c8eb1d265a13d3dc6cf3f5a390505aa66c60bb3 Mon Sep 17 00:00:00 2001 From: Asizon <43983086+Asizon@users.noreply.github.com> Date: Sat, 1 May 2021 09:39:28 +0200 Subject: [PATCH] Remove rc_smoothing types and updates --- src/js/tabs/receiver.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/tabs/receiver.js b/src/js/tabs/receiver.js index 653f2535..f4fa5080 100644 --- a/src/js/tabs/receiver.js +++ b/src/js/tabs/receiver.js @@ -612,6 +612,12 @@ TABS.receiver.initialize = function (callback) { $('.tab-receiver .rcSmoothing-auto-smoothness').hide(); } + if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) { + $('.tab-receiver .rcSmoothing-derivative-type').hide(); + $('.tab-receiver .rcSmoothing-input-type').hide(); + $('.tab-receiver input[name="rcSmoothingAutoSmoothness-number"]').attr("max", "250"); + } + // Only show the MSP control sticks if the MSP Rx feature is enabled $(".sticks_btn").toggle(FC.FEATURE_CONFIG.features.isEnabled('RX_MSP'));