From cf756d4cf7ff4965f8b7bee6456e78bcfae626ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Thu, 24 Apr 2014 20:22:41 +0200 Subject: [PATCH] fixed bug where ekg does not show "no data" and fixed bug where snmp was not closed correctly --- healthdisplay/src/main/java/de/psychose/ActorDisplay.java | 2 +- healthdisplay/src/main/java/de/psychose/SnmpStatClient.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/healthdisplay/src/main/java/de/psychose/ActorDisplay.java b/healthdisplay/src/main/java/de/psychose/ActorDisplay.java index 6bed33b..efe1d63 100644 --- a/healthdisplay/src/main/java/de/psychose/ActorDisplay.java +++ b/healthdisplay/src/main/java/de/psychose/ActorDisplay.java @@ -107,7 +107,7 @@ public class ActorDisplay { if (++counterEmg > timeout) { lblEmg.setForeground(offColor); - lblEkg.setText(offText); + lblEmg.setText(offText); } else { lblEmg.setForeground(onColor); } diff --git a/healthdisplay/src/main/java/de/psychose/SnmpStatClient.java b/healthdisplay/src/main/java/de/psychose/SnmpStatClient.java index 5825031..a523318 100644 --- a/healthdisplay/src/main/java/de/psychose/SnmpStatClient.java +++ b/healthdisplay/src/main/java/de/psychose/SnmpStatClient.java @@ -67,6 +67,8 @@ public class SnmpStatClient { } } } + + snmp.close(); } catch (IOException e) { e.printStackTrace(); }