2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 16:19:11 +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:
risiko79 2015-06-20 16:48:20 +00:00
parent 1f59b0262f
commit b14aa99d1b

View File

@ -523,6 +523,8 @@ sub pilight_ctrl_Notify($$)
my $me = $own->{NAME}; # own name / hash
my $devName = $dev->{NAME}; # Device that created the events
pilight_ctrl_CheckReadingState($own);
return undef if ($devName ne "global");
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, 2, "$me(SendDone): sending message failed" if (!$ok);
pilight_ctrl_CheckReadingState($hash);
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 pilight_ctrl_TryConnect($hash);
}
pilight_ctrl_CheckReadingState($hash);
}
#####################################