mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@6427 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fd41667f06
commit
303053491c
@ -54,7 +54,7 @@ use Time::HiRes qw(gettimeofday);
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
#add FHEM/lib to @INC if it's not allready included. Should rather be in fhem.pl than here though...
|
||||
#add FHEM/lib to @INC if it is not already included. Should rather be in fhem.pl than here though...
|
||||
BEGIN {
|
||||
if (!grep(/FHEM\/lib$/,@INC)) {
|
||||
foreach my $inc (grep(/FHEM$/,@INC)) {
|
||||
@ -68,7 +68,7 @@ use ProtoThreads;
|
||||
no warnings 'deprecated';
|
||||
sub Log($$);
|
||||
|
||||
my $owx_version="5.14";
|
||||
my $owx_version="5.15";
|
||||
#-- declare variables
|
||||
my %gets = (
|
||||
"present" => "",
|
||||
@ -222,6 +222,14 @@ sub OWID_Define ($$) {
|
||||
return undef;
|
||||
}
|
||||
|
||||
#########################################################################################
|
||||
#
|
||||
# OWID_Notify - Implements NotifyFn function
|
||||
#
|
||||
# Parameter hash = hash of device addressed, dev = device name
|
||||
#
|
||||
#########################################################################################
|
||||
|
||||
sub OWID_Notify ($$) {
|
||||
my ($hash,$dev) = @_;
|
||||
if( grep(m/^(INITIALIZED|REREADCFG)$/, @{$dev->{CHANGED}}) ) {
|
||||
@ -230,6 +238,14 @@ sub OWID_Notify ($$) {
|
||||
}
|
||||
}
|
||||
|
||||
#########################################################################################
|
||||
#
|
||||
# OWID_Define - Implements InitFn function
|
||||
#
|
||||
# Parameter hash = hash of device addressed
|
||||
#
|
||||
#########################################################################################
|
||||
|
||||
sub OWID_Init ($) {
|
||||
my ($hash)=@_;
|
||||
#-- Start timer for updates
|
||||
@ -283,7 +299,7 @@ sub OWID_Attr(@) {
|
||||
}
|
||||
}
|
||||
last;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return $ret;
|
||||
|
Loading…
Reference in New Issue
Block a user