From 7c768185efb189e7fb1d3e5e5a021c2fb785821b Mon Sep 17 00:00:00 2001 From: jpmreece Date: Wed, 17 Jul 2024 16:43:40 +0100 Subject: [PATCH] Added LED Brightness Adjust Added a brightness adjustment to allow an aux channel to change brightness. Tested with SpeedyBeeF7V3. Needs Language Pack Added. --- locales/en/messages.json | 3 +++ src/js/tabs/adjustments.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/locales/en/messages.json b/locales/en/messages.json index 68ffafca39..b7e6277783 100755 --- a/locales/en/messages.json +++ b/locales/en/messages.json @@ -2663,6 +2663,9 @@ }, "adjustmentsFunction30": { "message": "LED Profile Selection" + }, + "adjustmentsFunction31": { + "message": "LED Brightness Adjust" }, "adjustmentsSave": { "message": "Save" diff --git a/src/js/tabs/adjustments.js b/src/js/tabs/adjustments.js index 6e02c8c4f5..b0280edf97 100644 --- a/src/js/tabs/adjustments.js +++ b/src/js/tabs/adjustments.js @@ -272,7 +272,7 @@ adjustments.cleanup = function (callback) { adjustments.adjust_template = function () { const selectFunction = $('#functionSelectionSelect'); - const elementsNumber = 31; // 'LED Profile Select' are the last adjustmentsFunction + const elementsNumber = 32; // 'LED Dimmer' are the last adjustmentsFunction for (let i = 0; i < elementsNumber; i++) { selectFunction.append(new Option(i18n.getMessage(`adjustmentsFunction${i}`), i));