From b04880f488d34569ff7c841da589b77efb98632f Mon Sep 17 00:00:00 2001
From: rudolfkoenig <>
Date: Fri, 3 Jan 2014 08:42:39 +0000
Subject: [PATCH] FHT: set default retrycount to 1, as suggested by Zrrronggg!
(http://forum.fhem.de/index.php?topic=18233.new#new)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4538 2b470e98-0d58-463d-a4d8-8e2adae1ed80
---
FHEM/11_FHT.pm | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/FHEM/11_FHT.pm b/FHEM/11_FHT.pm
index 69dbec3bb..956a00566 100755
--- a/FHEM/11_FHT.pm
+++ b/FHEM/11_FHT.pm
@@ -372,7 +372,6 @@ FHT_Define($$)
}
$modules{FHT}{defptr}{$a[2]} = $hash;
- $attr{$a[0]}{retrycount} = 3;
#Log3 $a[0], 2, "Asking the FHT device $a[0]/$a[2] to send its data";
#FHT_Set($hash, ($a[0], "report1", "255", "report2", "255"));
@@ -621,7 +620,7 @@ doSoftBuffer($)
my $name = $h->{HASH}->{NAME};
if($h->{NSENT}) {
next if($now-$h->{SENDTIME} < $retryafter);
- my $retry = $attr{$name}{retrycount};
+ my $retry = AttrVal($name, "retrycount", 1);
if($h->{NSENT} > $retry) {
Log3 $name, 2, "$name set $h->{CMD}: ".
"no confirmation after $h->{NSENT} tries, giving up";
@@ -960,7 +959,7 @@ getFhtBuffer($)
resend commands retrycount
times if after 240 seconds
no confirmation message is received from the corresponding FHT
device.
- Default is 3.
+ Default is 1.