Solved i2c_sub_addrs not being printed problem (I hope)

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@285 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1999-03-01 13:27:57 +00:00
1 parent da3af62988
commit a900525440
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -946,7 +946,8 @@ sub scan_adapter
i2c_driver => $adapter_driver,
i2c_devnr => $adapter_nr,
};
$new_hash->{i2c_sub_addrs} = \@chips if (@chips);
my @chips_copy = @chips, $new_hash->{i2c_sub_addrs} = \@chips_copy
if (@chips);
add_i2c_to_chips_detected $$chip{driver}, $new_hash;
} else {
print "Failed!\n";
+2 -1
View File
@@ -946,7 +946,8 @@ sub scan_adapter
i2c_driver => $adapter_driver,
i2c_devnr => $adapter_nr,
};
$new_hash->{i2c_sub_addrs} = \@chips if (@chips);
my @chips_copy = @chips, $new_hash->{i2c_sub_addrs} = \@chips_copy
if (@chips);
add_i2c_to_chips_detected $$chip{driver}, $new_hash;
} else {
print "Failed!\n";