2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 01:46:08 +00:00

query hardware- and firmwareversion if product code is received

git-svn-id: https://svn.fhem.de/fhem/trunk@4534 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-01-02 20:36:35 +00:00
parent 7b9c56db28
commit 3f346fcbfe

View File

@ -932,14 +932,12 @@ SWAP_Parse($$)
$rhash->{product} = $products->{$productcode} if( defined($productcode) && defined($products->{$productcode} ) ); $rhash->{product} = $products->{$productcode} if( defined($productcode) && defined($products->{$productcode} ) );
#SWAP_Set( $rhash, $rname, "getConfig" ) if( !$first ); if( $first ) {
SWAP_Set( $rhash, $rname, "statusRequest" ) if( $first ); SWAP_Set( $rhash, $rname, "statusRequest" );
} } else {
SWAP_Send($rhash, $rhash->{addr}, QUERY, "01" );
if( my $parse = $modules{$rhash->{TYPE}}{SWAP_ParseFn} ) { SWAP_Send($rhash, $rhash->{addr}, QUERY, "02" );
no strict "refs"; }
&{$parse}($rhash,$reg,$func,$data);
use strict "refs";
} }
my @list; my @list;
@ -989,6 +987,12 @@ SWAP_Parse($$)
} }
} }
if( my $parse = $modules{$rhash->{TYPE}}{SWAP_ParseFn} ) {
no strict "refs";
&{$parse}($rhash,$reg,$func,$data);
use strict "refs";
}
if( !defined($rhash->{SWAP_nonce}) if( !defined($rhash->{SWAP_nonce})
|| hex($nonce) < hex($rhash->{SWAP_nonce}) ) { || hex($nonce) < hex($rhash->{SWAP_nonce}) ) {
delete( $rhash->{SWAP_MISSED} ); delete( $rhash->{SWAP_MISSED} );