[lcn] Fix processing of logic function "all fulfilled" status message (#15649)

Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
pull/15656/head
Fabian Wolter 2023-09-25 19:27:26 +02:00 committed by GitHub
parent 87bede36db
commit 47e649eae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public class LcnModuleLogicSubHandler extends AbstractLcnModuleSubHandler {
state = LcnDefs.LogicOpStatus.OR;
break;
case "050":
case "200": // not documented, but seen in the field and confirmed by the LCN hotline
state = LcnDefs.LogicOpStatus.AND;
break;
default:

View File

@ -106,4 +106,11 @@ public class LcnModuleLogicSubHandlerTest extends AbstractTestLcnModuleSubHandle
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
verify(handler).updateChannel(any(), any(), any());
}
@Test
public void testStatusSingleLogic3And200() {
tryParseAllHandlers("=M000005S3200");
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
verify(handler).updateChannel(any(), any(), any());
}
}