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 2018/02/16 14:56:05 UTC

[incubator-plc4x] branch master updated: Fixed a typo

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new 3124e57  Fixed a typo
3124e57 is described below

commit 3124e57c489e853d42ff7a3e008504816ead926f
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Fri Feb 16 15:55:54 2018 +0100

    Fixed a typo
---
 .../main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
index 12c3467..71bdcaa 100644
--- a/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
+++ b/plc4j/protocols/s7/src/main/java/org/apache/plc4x/java/isotp/netty/IsoTPProtocol.java
@@ -102,7 +102,7 @@ public class IsoTPProtocol extends MessageToMessageCodec<IsoOnTcpMessage, Tpdu>
                 encodeDisconnect(in, buf);
                 break;
             case TPDU_ERROR:
-                enocdeError(in, buf);
+                encodeError(in, buf);
                 break;
             default:
                 if (logger.isErrorEnabled()) {
@@ -116,7 +116,7 @@ public class IsoTPProtocol extends MessageToMessageCodec<IsoOnTcpMessage, Tpdu>
         out.add(new IsoOnTcpMessage(buf));
     }
 
-    private void enocdeError(Tpdu in, ByteBuf buf) {
+    private void encodeError(Tpdu in, ByteBuf buf) {
         ErrorTpdu errorTpdu = (ErrorTpdu) in;
         buf.writeShort(errorTpdu.getDestinationReference());
         buf.writeByte(errorTpdu.getRejectCause().getCode());

-- 
To stop receiving notification emails like this one, please contact
cdutz@apache.org.