bugfix: fix lighting command refresh logic in trim set functions (#1313)

This commit is contained in:
Steve Karg
2026-04-24 16:43:20 -05:00
committed by GitHub
parent f616a8cc68
commit 8188231f31
-6
View File
@@ -2620,9 +2620,7 @@ bool Lighting_Output_High_End_Trim_Set(uint32_t object_instance, float value)
pObject->High_End_Trim = value; pObject->High_End_Trim = value;
Lighting_Command_Trim_Apply( Lighting_Command_Trim_Apply(
pObject, Present_Value_Priority(pObject)); pObject, Present_Value_Priority(pObject));
if (!lighting_command_active(&pObject->Lighting_Command)) {
lighting_command_refresh(&pObject->Lighting_Command); lighting_command_refresh(&pObject->Lighting_Command);
}
status = true; status = true;
} }
} }
@@ -2697,9 +2695,7 @@ bool Lighting_Output_Low_End_Trim_Set(uint32_t object_instance, float value)
pObject->Low_End_Trim = value; pObject->Low_End_Trim = value;
Lighting_Command_Trim_Apply( Lighting_Command_Trim_Apply(
pObject, Present_Value_Priority(pObject)); pObject, Present_Value_Priority(pObject));
if (!lighting_command_active(&pObject->Lighting_Command)) {
lighting_command_refresh(&pObject->Lighting_Command); lighting_command_refresh(&pObject->Lighting_Command);
}
status = true; status = true;
} }
} }
@@ -2775,9 +2771,7 @@ bool Lighting_Output_Trim_Fade_Time_Set(
pObject->Trim_Fade_Time = value; pObject->Trim_Fade_Time = value;
Lighting_Command_Trim_Apply( Lighting_Command_Trim_Apply(
pObject, Present_Value_Priority(pObject)); pObject, Present_Value_Priority(pObject));
if (!lighting_command_active(&pObject->Lighting_Command)) {
lighting_command_refresh(&pObject->Lighting_Command); lighting_command_refresh(&pObject->Lighting_Command);
}
status = true; status = true;
} }
} }