implement virtTemp - 3
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4771 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -3510,11 +3510,19 @@ sub CUL_HM_valvePosUpdt(@) {#update valve position periodically to please valve
|
|||||||
my $nextTimer = (($lo+$hi)&0xff)/4 + 120;#original - instable
|
my $nextTimer = (($lo+$hi)&0xff)/4 + 120;#original - instable
|
||||||
my $name = $hash->{NAME};
|
my $name = $hash->{NAME};
|
||||||
|
|
||||||
CUL_HM_PushCmdStack($hash,sprintf("%02X%s%s%s"
|
if ($hash->{helper}{vd}{typ} == 1){
|
||||||
|
CUL_HM_PushCmdStack($hash,sprintf("%02X%s%s%s"
|
||||||
,$msgCnt
|
,$msgCnt
|
||||||
,$hash->{helper}{vd}{cmd}
|
,$hash->{helper}{vd}{cmd}
|
||||||
,$hash->{helper}{virtTC}
|
,$hash->{helper}{virtTC}
|
||||||
,$hash->{helper}{vd}{val}));
|
,$hash->{helper}{vd}{val}));
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
CUL_HM_PushCmdStack($hash,sprintf("%02X%s%s"
|
||||||
|
,$msgCnt
|
||||||
|
,$hash->{helper}{vd}{cmd}
|
||||||
|
,$hash->{helper}{vd}{val}));
|
||||||
|
}
|
||||||
|
|
||||||
my $tn = gettimeofday();
|
my $tn = gettimeofday();
|
||||||
$hash->{helper}{vd}{nextF} = $hash->{helper}{vd}{next} + $nextTimer;
|
$hash->{helper}{vd}{nextF} = $hash->{helper}{vd}{next} + $nextTimer;
|
||||||
|
|||||||
Reference in New Issue
Block a user