2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 23:06:37 +00:00

check IOhash set

git-svn-id: https://svn.fhem.de/fhem/trunk@5184 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
martinp876 2014-03-09 19:00:00 +00:00
parent 5d8ecb78b0
commit 98d5384eef

View File

@ -2441,7 +2441,6 @@ sub CUL_HM_Get($@) {#+++++++++++++++++ get command+++++++++++++++++++++++++++++
return "$cmd requires parameter: $h";
}
my $devHash = CUL_HM_getDeviceHash($hash);
my $id = CUL_HM_IOid($hash);
#----------- now start processing --------------
if ($cmd eq "param") { ###################################################
@ -4955,8 +4954,8 @@ sub CUL_HM_IOid($) {#in: hash out: id of IO device
my ($hash) = @_;
my $dHash = CUL_HM_getDeviceHash($hash);
my $ioHash = $dHash->{IODev};
my $fhtid = defined($ioHash->{FHTID}) ? $ioHash->{FHTID} : "0000";
return "" if (!$ioHash->{NAME});
my $fhtid = defined($ioHash->{FHTID}) ? $ioHash->{FHTID} : "0000";
return AttrVal($ioHash->{NAME},"hmId","F1$fhtid");
}
sub CUL_HM_hash2Id($) {#in: id, out:hash