You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/03/13 20:15:25 UTC
(plc4x) branch develop updated: refactor: Added S7-400 to the list of supported devices.
This is an automated email from the ASF dual-hosted git repository.
cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new ad92e6a801 refactor: Added S7-400 to the list of supported devices.
ad92e6a801 is described below
commit ad92e6a801f6e2c9221905770e0b3bad0e25ee62
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Wed Mar 13 21:15:18 2024 +0100
refactor: Added S7-400 to the list of supported devices.
---
.../org/apache/plc4x/java/s7/readwrite/protocol/S7HPlcConnection.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7HPlcConnection.java b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7HPlcConnection.java
index cf3295f422..bd1f3bd789 100644
--- a/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7HPlcConnection.java
+++ b/plc4j/drivers/s7/src/main/java/org/apache/plc4x/java/s7/readwrite/protocol/S7HPlcConnection.java
@@ -260,7 +260,7 @@ public class S7HPlcConnection extends DefaultNettyPlcConnection implements Runna
public boolean isSubscribeSupported() {
Plc4xProtocolBase<?> protocol = getProtocol();
S7DriverContext s7driverContext = (S7DriverContext) protocol.getDriverContext();
- return s7driverContext.getControllerType() == ControllerType.S7_300;
+ return (s7driverContext.getControllerType() == ControllerType.S7_300) || (s7driverContext.getControllerType() == ControllerType.S7_400);
}
public void doPrimaryTcpConnections() {