+ Fix modbus reading

This commit is contained in:
garnier-quentin 2017-05-16 11:41:15 +02:00
parent 812e3c4aa8
commit dab3bed602
1 changed files with 2 additions and 1 deletions

View File

@ -247,7 +247,8 @@ sub manage_selection {
foreach my $id (keys %{$config_data->{selection}}) {
next if (!defined($config_data->{selection}->{$id}->{address}));
my $results = $options{custom}->read_objects(address => $config_data->{selection}->{$id}->{address},
unit => $config_data->{selection}->{$id}->{unit}, quantity => $config_data->{selection}->{$id}->{quantity});
unit => $config_data->{selection}->{$id}->{unit}, quantity => $config_data->{selection}->{$id}->{quantity},
type => $config_data->{selection}->{$id}->{type});
my $i = 0;
my $extra_num = 0;
if (scalar(@$results) > 1) {