2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-25 09:55:38 +00:00

98_Modbus: bugfix for scanning input registers

git-svn-id: https://svn.fhem.de/fhem/trunk@28814 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
StefanStrobel 2024-04-21 14:12:59 +00:00
parent 920420e483
commit a838b52fe3

View File

@ -3474,7 +3474,7 @@ sub GetFC {
SEARCH: # find default function code first SEARCH: # find default function code first
foreach my $fc (keys %fcMap) { foreach my $fc (keys %fcMap) {
if ($fcMap{$fc}{type} && $fcMap{$fc}{type} eq $type && exists $fcMap{$fc}{$op} && exists $fcMap{$fc}{default}) { if ($fcMap{$fc}{type} && $fcMap{$fc}{type} eq $type && exists $fcMap{$fc}{$fcKey} && exists $fcMap{$fc}{default}) {
$defFC = $fc; $defFC = $fc;
last SEARCH; last SEARCH;
} }