mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
bugfix VD possition check
git-svn-id: https://svn.fhem.de/fhem/trunk@6296 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b8b71e588b
commit
9217f67b09
@ -1140,7 +1140,7 @@ sub CUL_HM_Parse($$) {#########################################################
|
||||
push @evtEt,[$shash,1,"motor:stop" ] if(($err&0x30) == 0x00);
|
||||
|
||||
#VD hang detection
|
||||
my $des = ReadingsVal($name, "ValveDesired", "");
|
||||
my $des = ReadingsVal($name, "ValveDesired", $vp);
|
||||
$des =~ s/ .*//; # remove unit
|
||||
if (($des < $vp-1 || $des > $vp+1) && ($err&0x30) == 0x00){
|
||||
if ($shash->{helper}{oldDes} eq $des){#desired valve position stable
|
||||
@ -3204,6 +3204,7 @@ sub CUL_HM_Set($@) {#+++++++++++++++++ set command+++++++++++++++++++++++++++++
|
||||
delete $hash->{helper}{prt}{rspWaitSec};
|
||||
delete $hash->{helper}{prt}{mmcA};
|
||||
delete $hash->{helper}{prt}{mmcS};
|
||||
delete $hash->{lastMsg};
|
||||
delete ($hash->{$_}) foreach (grep(/^prot/,keys %{$hash}));
|
||||
|
||||
if ($hash->{IODev}{NAME} &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user