You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by tm...@apache.org on 2019/03/04 12:59:16 UTC
[incubator-plc4x] 06/08: - Fixed a bug in the code
This is an automated email from the ASF dual-hosted git repository.
tmitsch pushed a commit to branch rel/0.3
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git
commit c9530443eee532516eca7678cf4bd1c22c90caf6
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Feb 21 20:38:43 2019 +0100
- Fixed a bug in the code
(cherry picked from commit b799c2f0b201cdc0ea151c51d954d2a4de157fdd)
---
.../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);
}