mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 22:26:04 +00:00
10_pilight_ctrl: chg: checking reading state
git-svn-id: https://svn.fhem.de/fhem/trunk@8785 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1f59b0262f
commit
b14aa99d1b
@ -523,6 +523,8 @@ sub pilight_ctrl_Notify($$)
|
|||||||
my $me = $own->{NAME}; # own name / hash
|
my $me = $own->{NAME}; # own name / hash
|
||||||
my $devName = $dev->{NAME}; # Device that created the events
|
my $devName = $dev->{NAME}; # Device that created the events
|
||||||
|
|
||||||
|
pilight_ctrl_CheckReadingState($own);
|
||||||
|
|
||||||
return undef if ($devName ne "global");
|
return undef if ($devName ne "global");
|
||||||
|
|
||||||
my $max = int(@{$dev->{CHANGED}}); # number of events / changes
|
my $max = int(@{$dev->{CHANGED}}); # number of events / changes
|
||||||
@ -559,6 +561,8 @@ sub pilight_ctrl_SendDone($)
|
|||||||
Log3 $me, 4, "$me(SendDone): message successfully send" if ($ok);
|
Log3 $me, 4, "$me(SendDone): message successfully send" if ($ok);
|
||||||
Log3 $me, 2, "$me(SendDone): sending message failed" if (!$ok);
|
Log3 $me, 2, "$me(SendDone): sending message failed" if (!$ok);
|
||||||
|
|
||||||
|
pilight_ctrl_CheckReadingState($hash);
|
||||||
|
|
||||||
delete($hash->{helper}{RUNNING_PID});
|
delete($hash->{helper}{RUNNING_PID});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -831,6 +835,8 @@ sub pilight_ctrl_Ready($)
|
|||||||
return if(defined($hash->{helper}{NEXT_TRY}) && $hash->{helper}{NEXT_TRY} && time() < $hash->{helper}{NEXT_TRY});
|
return if(defined($hash->{helper}{NEXT_TRY}) && $hash->{helper}{NEXT_TRY} && time() < $hash->{helper}{NEXT_TRY});
|
||||||
return pilight_ctrl_TryConnect($hash);
|
return pilight_ctrl_TryConnect($hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pilight_ctrl_CheckReadingState($hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user