mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fixed address detection
git-svn-id: https://svn.fhem.de/fhem/trunk@3606 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3fa207e6b2
commit
5be000ce01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user