mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
Checking for uninitialized var.
git-svn-id: https://svn.fhem.de/fhem/trunk@2240 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0e84c331dd
commit
d26af0d028
@ -677,7 +677,10 @@ CUL_XmitLimitCheckHM($$)
|
||||
# was working with 700ms - added buffer to 900ms
|
||||
my ($hash,$fn) = @_;
|
||||
my $id = (length($fn)>19)?substr($fn,16,6):"";#get HMID destination
|
||||
if ($id){
|
||||
if($id &&
|
||||
$hash->{helper} &&
|
||||
$hash->{helper}{nextSend} &&
|
||||
$hash->{helper}{nextSend}{$id}) {
|
||||
my $DevDelay = $hash->{helper}{nextSend}{$id} - gettimeofday();
|
||||
if ($DevDelay > 0.01){# wait less then 10 ms will not work
|
||||
$DevDelay = ((int($DevDelay*100))%100)/100;# security: no more then 1 sec
|
||||
|
Loading…
Reference in New Issue
Block a user