From 8188231f3141b177e92bea176fd78987643510a2 Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Fri, 24 Apr 2026 16:43:20 -0500 Subject: [PATCH] bugfix: fix lighting command refresh logic in trim set functions (#1313) --- src/bacnet/basic/object/lo.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/bacnet/basic/object/lo.c b/src/bacnet/basic/object/lo.c index 6c15b0eb..33fadf4b 100644 --- a/src/bacnet/basic/object/lo.c +++ b/src/bacnet/basic/object/lo.c @@ -2620,9 +2620,7 @@ bool Lighting_Output_High_End_Trim_Set(uint32_t object_instance, float value) pObject->High_End_Trim = value; Lighting_Command_Trim_Apply( 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; } } @@ -2697,9 +2695,7 @@ bool Lighting_Output_Low_End_Trim_Set(uint32_t object_instance, float value) pObject->Low_End_Trim = value; Lighting_Command_Trim_Apply( 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; } } @@ -2775,9 +2771,7 @@ bool Lighting_Output_Trim_Fade_Time_Set( pObject->Trim_Fade_Time = value; Lighting_Command_Trim_Apply( 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; } }