[lcn] Fix processing of logic function "all fulfilled" status message (#15649)
Signed-off-by: Fabian Wolter <github@fabian-wolter.de>
This commit is contained in:
parent
87bede36db
commit
47e649eae1
|
@ -101,6 +101,7 @@ public class LcnModuleLogicSubHandler extends AbstractLcnModuleSubHandler {
|
||||||
state = LcnDefs.LogicOpStatus.OR;
|
state = LcnDefs.LogicOpStatus.OR;
|
||||||
break;
|
break;
|
||||||
case "050":
|
case "050":
|
||||||
|
case "200": // not documented, but seen in the field and confirmed by the LCN hotline
|
||||||
state = LcnDefs.LogicOpStatus.AND;
|
state = LcnDefs.LogicOpStatus.AND;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -106,4 +106,11 @@ public class LcnModuleLogicSubHandlerTest extends AbstractTestLcnModuleSubHandle
|
||||||
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
|
verify(handler).updateChannel(LcnChannelGroup.LOGIC, "3", AND);
|
||||||
verify(handler).updateChannel(any(), any(), any());
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue