2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

UndefFn added

git-svn-id: https://svn.fhem.de/fhem/trunk@2807 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-02-25 13:15:06 +00:00
parent 8fd8251d2b
commit a4022c2542

View File

@ -95,6 +95,7 @@ EnOcean_Initialize($)
$hash->{Match} = "^EnOcean:"; $hash->{Match} = "^EnOcean:";
$hash->{DefFn} = "EnOcean_Define"; $hash->{DefFn} = "EnOcean_Define";
$hash->{UndefFn} = "EnOcean_Undef";
$hash->{ParseFn} = "EnOcean_Parse"; $hash->{ParseFn} = "EnOcean_Parse";
$hash->{SetFn} = "EnOcean_Set"; $hash->{SetFn} = "EnOcean_Set";
$hash->{AttrList} = "IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 " . $hash->{AttrList} = "IODev do_not_notify:1,0 ignore:0,1 dummy:0,1 " .
@ -618,6 +619,15 @@ EnOcean_A5Cmd($$$)
# type=A5 msg:4 senderId:4 status=00 subTelNum=01 destId:4 dBm=FF Security=00 # type=A5 msg:4 senderId:4 status=00 subTelNum=01 destId:4 dBm=FF Security=00
} }
#####################################
sub
EnOcean_Undef($$)
{
my ($hash, $arg) = @_;
delete $modules{EnOcean}{defptr}{uc($hash->{DEF})};
return undef;
}
1; 1;
=pod =pod