From bc2e0866e3dc05bbd12e14981f4554bfa35b3440 Mon Sep 17 00:00:00 2001 From: Steve Karg Date: Thu, 18 Sep 2025 15:01:39 -0500 Subject: [PATCH] Fixed Lighting Output Step Up/On and Down/Off mixup. (#1099) --- CHANGELOG.md | 1 + src/bacnet/basic/object/lo.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba71f83a..b464144d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,7 @@ The git repositories are hosted at the following sites: ### Fixed +* Fixed Lighting Output step operations mixup. (#1099) * Fixed Lighting Output step operations to set the Priority_Array slot. (#1098) * Fixed the lighting output objects current priority comparison during lighting commands by using priority 17 for relinquish default diff --git a/src/bacnet/basic/object/lo.c b/src/bacnet/basic/object/lo.c index 0e553969..e79ed360 100644 --- a/src/bacnet/basic/object/lo.c +++ b/src/bacnet/basic/object/lo.c @@ -1369,7 +1369,7 @@ bool Lighting_Output_Lighting_Command_Set( "LO[%u]: Lighting-Command@%u Step " "Step-Increment=%f\n", object_instance, priority, (double)value->step_increment); - Lighting_Command_Step_Down_Off( + Lighting_Command_Step_Up_On( pObject, priority, value->operation, value->step_increment); status = true; break; @@ -1379,7 +1379,7 @@ bool Lighting_Output_Lighting_Command_Set( "LO[%u]: Lighting-Command@%u Step " "Step-Increment=%f\n", object_instance, priority, (double)value->step_increment); - Lighting_Command_Step_Up_On( + Lighting_Command_Step_Down_Off( pObject, priority, value->operation, value->step_increment); status = true; break;