This is an automated email from the ASF dual-hosted git repository.
zehnder pushed a commit to branch dev
in repository
https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git
The following commit(s) were added to refs/heads/dev by this push:
new 323d229 Remove break in modbus adapter
323d229 is described below
commit 323d229437cacb5754400d1752e7bcc1966bbac4
Author: Philipp Zehnder <[email protected]>
AuthorDate: Thu Jul 2 15:13:45 2020 +0200
Remove break in modbus adapter
---
.../streampipes/connect/adapters/plc4x/modbus/Plc4xModbusAdapter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/modbus/Plc4xModbusAdapter.java
b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/modbus/Plc4xModbusAdapter.java
index cd367c3..930f792 100644
---
a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/modbus/Plc4xModbusAdapter.java
+++
b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/modbus/Plc4xModbusAdapter.java
@@ -175,9 +175,9 @@ public class Plc4xModbusAdapter extends PullAdapter{
switch (type) {
case "DISCRETEINPUT":
- case "COIL": return Datatypes.Boolean;break;
+ case "COIL": return Datatypes.Boolean;
case "INPUTREGISTER":
- case "HOLDINGREGISTER": return Datatypes.Integer;break;
+ case "HOLDINGREGISTER": return Datatypes.Integer;
default:
throw new AdapterException("Datatype " + plcType + " is not
supported");
}