From 303053491c9694799ffbd3e77b93fc7db3063db5 Mon Sep 17 00:00:00 2001 From: pahenning <> Date: Wed, 20 Aug 2014 09:26:58 +0000 Subject: [PATCH] git-svn-id: https://svn.fhem.de/fhem/trunk@6427 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/21_OWID.pm | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/21_OWID.pm b/fhem/FHEM/21_OWID.pm index aaae6cca2..3795c2c82 100644 --- a/fhem/FHEM/21_OWID.pm +++ b/fhem/FHEM/21_OWID.pm @@ -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;