Skip to content

Commit

Permalink
[lcn] Fix processing of logic function "all fulfilled" status message
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolter committed Sep 25, 2023
1 parent 4809816 commit be74bbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public void handleStatusMessage(Matcher matcher) {
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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ public void testStatusSingleLogic3And() {
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());
}
}

0 comments on commit be74bbc

Please sign in to comment.