fixed address detection

git-svn-id: https://svn.fhem.de/fhem/trunk@3606 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2013-08-07 19:56:02 +00:00
parent 7041916bd5
commit c992b607b9

View File

@@ -746,10 +746,11 @@ SWAP_findFreeAddress($$)
{
my ($hash, $orig) = @_;
for( my $addr = 0xF0; $addr < 0xFF; $addr++ ) {
for( my $i = 0xF0; $i < 0xFF; $i++ ) {
my $addr = sprintf( "%02X", $i );
next if( $modules{SWAP}{defptr}{$addr} );
return sprintf( "%02X", $addr );
return $addr;
}
return $orig;