2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

Corrected alias detection

I forgot to set the I2C address correctly, so it was always comparing with
device 0x00 :-(


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@274 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard
1999-02-25 08:37:29 +00:00
parent 4e7910569f
commit 8f952fb324
2 changed files with 16 additions and 0 deletions

View File

@@ -799,6 +799,10 @@ sub add_isa_to_chips_detected
print("Can't open ",
"/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$j]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_misdetected_ref->[$j]->{address})) {
$new_misdetected_ref->[$j]->{isa_addr} = $datahash->{isa_addr};
@@ -816,6 +820,10 @@ sub add_isa_to_chips_detected
print("Can't open ",
"/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_detected_ref->[$j]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_detected_ref->[$j]->{address})) {
$new_detected_ref->[$j]->{isa_addr} = $datahash->{isa_addr};

View File

@@ -799,6 +799,10 @@ sub add_isa_to_chips_detected
print("Can't open ",
"/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_misdetected_ref->[$j]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_misdetected_ref->[$j]->{devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_misdetected_ref->[$j]->{address})) {
$new_misdetected_ref->[$j]->{isa_addr} = $datahash->{isa_addr};
@@ -816,6 +820,10 @@ sub add_isa_to_chips_detected
print("Can't open ",
"/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"),
next;
i2c_set_slave_addr \*FILE,$new_detected_ref->[$j]->{address} or
print("Can't set I2C address for ",
"/dev/i2c-$new_detected_ref->[$j]->{devnr}?!?\n"),
next;
if (&$alias_detect ($datahash->{isa_addr},\*FILE,
$new_detected_ref->[$j]->{address})) {
$new_detected_ref->[$j]->{isa_addr} = $datahash->{isa_addr};