diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 4c20d00bc..066917393 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -2075,7 +2075,7 @@ AssignIoPort($;$) # Set the I/O device, search for the last compatible one. for my $p (sort { $defs{$b}{NR} <=> $defs{$a}{NR} } keys %defs) { - next if(IsDisabled($p) != 1); + next if(IsDisabled($p) == 1); my $cl = $defs{$p}{Clients}; $cl = $modules{$defs{$p}{TYPE}}{Clients} if(!$cl);