mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
OWSWITCH: remove unused code (Await_GetState)
git-svn-id: https://svn.fhem.de/fhem/trunk@5391 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
cf822a79e8
commit
f0e570e99d
@ -489,7 +489,6 @@ sub OWSWITCH_Get($@) {
|
||||
#-- OWX interface
|
||||
if( $interface =~ /^OWX/ ){
|
||||
$ret = OWXSWITCH_GetState($hash);
|
||||
#ASYNC OWXSWITCH_AwaitGetState($hash);
|
||||
#-- OWFS interface
|
||||
}elsif( $interface eq "OWFS" ){
|
||||
$ret = OWFSSWITCH_GetState($hash);
|
||||
@ -507,7 +506,6 @@ sub OWSWITCH_Get($@) {
|
||||
|
||||
if( $interface =~ /^OWX/ ){
|
||||
$ret = OWXSWITCH_GetState($hash);
|
||||
#ASYNC OWXSWITCH_AwaitGetState($hash);
|
||||
}elsif( $interface eq "OWServer" ){
|
||||
$ret = OWFSSWITCH_GetState($hash);
|
||||
}else{
|
||||
@ -1064,29 +1062,6 @@ sub OWXSWITCH_BinValues($$$$$$$$) {
|
||||
return undef;
|
||||
}
|
||||
|
||||
sub OWXSWITCH_AwaitGetState($) {
|
||||
my ($hash) = @_;
|
||||
|
||||
#-- ID of the device, hash of the busmaster
|
||||
my $owx_dev = $hash->{ROM_ID};
|
||||
my $master = $hash->{IODev};
|
||||
my $family = $hash->{OW_FAMILY};
|
||||
|
||||
if ($master and $owx_dev) {
|
||||
#-- family = 12 => DS2406
|
||||
if( $family eq "12" ) {
|
||||
return OWX_AwaitExecuteResponse( $master, "getstate.ds2406", $owx_dev );
|
||||
#-- family = 29 => DS2408
|
||||
} elsif( $family eq "29" ) {
|
||||
return OWX_AwaitExecuteResponse( $master, "getstate.ds2408", $owx_dev );
|
||||
#-- family = 3A => DS2413
|
||||
} elsif( $family eq "3A" ) {
|
||||
return OWX_AwaitExecuteResponse( $master, "getstate.ds2413", $owx_dev );
|
||||
}
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
|
||||
########################################################################################
|
||||
#
|
||||
# OWXSWITCH_GetState - Get gpio ports from device
|
||||
|
Loading…
Reference in New Issue
Block a user