Improve new backlight (#8018)

Backlight function improvement
This commit is contained in:
3djc
2020-10-16 16:26:47 +02:00
committed by GitHub
parent c62a9b3a66
commit 596738b968
6 changed files with 28 additions and 11 deletions
+6
View File
@@ -356,6 +356,12 @@ void evalFunctions(const CustomFunctionData * functions, CustomFunctionsContext
case FUNC_BACKLIGHT:
{
newActiveFunctions |= (1u << FUNCTION_BACKLIGHT);
if (!CFN_PARAM(cfn)) { // When no source is set, backlight works like original backlight and turn on regardless of backlight settings
requiredBacklightBright = BACKLIGHT_FORCED_ON;
break;
}
getvalue_t raw = getValue(CFN_PARAM(cfn));
#if defined(COLORLCD)
if (raw == -1024)