From a838b52fe389aa3a34b0000c6e587ad7dc801fa2 Mon Sep 17 00:00:00 2001 From: StefanStrobel <> Date: Sun, 21 Apr 2024 14:12:59 +0000 Subject: [PATCH] 98_Modbus: bugfix for scanning input registers git-svn-id: https://svn.fhem.de/fhem/trunk@28814 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_Modbus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/98_Modbus.pm b/fhem/FHEM/98_Modbus.pm index f7aad50e4..253dd4a44 100755 --- a/fhem/FHEM/98_Modbus.pm +++ b/fhem/FHEM/98_Modbus.pm @@ -3474,7 +3474,7 @@ sub GetFC { SEARCH: # find default function code first 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; last SEARCH; }