mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-30 05:57:08 +00:00
00_OWX.pm: Modifikation erlaubt dem ALTEN OWX, mit dem NEUEN Frontendmodul 21_OWID zu funktionieren.
git-svn-id: https://svn.fhem.de/fhem/trunk@15057 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4300a57933
commit
832b8ec15b
@ -1077,8 +1077,15 @@ sub OWX_Undef ($$) {
|
|||||||
#
|
#
|
||||||
########################################################################################
|
########################################################################################
|
||||||
|
|
||||||
sub OWX_Verify ($$) {
|
sub OWX_Verify () {
|
||||||
my ($hash,$dev) = @_;
|
my ($hashorname,$devname,$devid,$type) = @_;
|
||||||
|
my $hash;
|
||||||
|
|
||||||
|
if( $type == 1){
|
||||||
|
$hash = $defs{$hashorname};
|
||||||
|
}else{
|
||||||
|
$hash = $hashorname;
|
||||||
|
}
|
||||||
my $i;
|
my $i;
|
||||||
|
|
||||||
#-- get the interface
|
#-- get the interface
|
||||||
@ -1089,12 +1096,12 @@ sub OWX_Verify ($$) {
|
|||||||
if( !defined($owx_interface) );
|
if( !defined($owx_interface) );
|
||||||
#-- Directly connected interface
|
#-- Directly connected interface
|
||||||
if( ($owx_interface eq "DS2480") || ($owx_interface eq "DS9097") ){
|
if( ($owx_interface eq "DS2480") || ($owx_interface eq "DS9097") ){
|
||||||
return OWX_Verify_SER($hash,$dev)
|
return OWX_Verify_SER($hash,$devid)
|
||||||
#-- Ask the COC/CUNO
|
#-- Ask the COC/CUNO
|
||||||
}elsif( ($owx_interface eq "COC" ) || ($owx_interface eq "CUNO") ){
|
}elsif( ($owx_interface eq "COC" ) || ($owx_interface eq "CUNO") ){
|
||||||
return OWX_Verify_CCC($hash,$dev)
|
return OWX_Verify_CCC($hash,$devid)
|
||||||
}elsif( $owx_interface eq "firmata" ){
|
}elsif( $owx_interface eq "firmata" ){
|
||||||
return FRM_OWX_Verify($hash,$dev);
|
return FRM_OWX_Verify($hash,$devid);
|
||||||
} else {
|
} else {
|
||||||
Log 1,"OWX: Verify called with unknown interface";
|
Log 1,"OWX: Verify called with unknown interface";
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user