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 2019/02/22 14:02:42 UTC

[incubator-plc4x] 01/02: - Fixed a bug in the code

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/incubator-plc4x.git

commit b799c2f0b201cdc0ea151c51d954d2a4de157fdd
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Feb 21 20:38:43 2019 +0100

    - Fixed a bug in the code
---
 .../main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java b/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
index 46a0832..9a236ae 100644
--- a/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
+++ b/examples/hello-world-plc4x/src/main/java/org/apache/plc4x/java/examples/helloplc4x/HelloPlc4x.java
@@ -78,7 +78,7 @@ public class HelloPlc4x {
             CompletableFuture<? extends PlcReadResponse> asyncResponse = readRequest.execute();
             asyncResponse.whenComplete((readResponse, throwable) -> {
                 if (readResponse != null) {
-                    printResponse(syncResponse);
+                    printResponse(readResponse);
                 } else {
                     logger.error("An error occurred: " + throwable.getMessage(), throwable);
                 }