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/10/10 10:55:49 UTC

[plc4x] branch develop updated: - Fixed a bug in the great simulation I built.

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 44206bc  - Fixed a bug in the great simulation I built.
44206bc is described below

commit 44206bc493dcb8af4c19f572b52a90fc186d4812
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Thu Oct 10 12:55:41 2019 +0200

    - Fixed a bug in the great simulation I built.
---
 .../plc4x/simulator/simulation/watertank/WaterTankSimulationModule.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/simulation/watertank/WaterTankSimulationModule.java b/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/simulation/watertank/WaterTankSimulationModule.java
index 996076d..8b5ba9c 100644
--- a/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/simulation/watertank/WaterTankSimulationModule.java
+++ b/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/simulation/watertank/WaterTankSimulationModule.java
@@ -50,7 +50,7 @@ public class WaterTankSimulationModule implements SimulationModule {
         // TODO: Do something sensible ;-)
         try {
             // Just increase the level by 1 (Whatever this means ...
-            context.put(PROP_WATER_LEVEL, ((Integer) context.get(context)) + 1);
+            context.put(PROP_WATER_LEVEL, ((Integer) context.get(PROP_WATER_LEVEL)) + 1);
             TimeUnit.MILLISECONDS.sleep(100);
         } catch (InterruptedException e) {
             e.printStackTrace();