mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 14:25:39 +00:00
Changes regarding the new i2c_check_addr function
Changes in sensors.c: sensors_detect now skips addresses which are already taken. Even a force parameter can not override this, as it could lead to major problems. For ISA addresses, the same is done; but the client drivers still need a check if they claim more than one ISA address (as all of the current ISA clients do). Changes in chip drivers: Removed the comment about needing address registration Changes in i2cdetect.c: Marks addresses which are already claimed Changes in sensors-detect: Warns when an address is already claimed, and skips it. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@667 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -1082,8 +1082,8 @@ sub scan_adapter
|
||||
next;
|
||||
}
|
||||
|
||||
i2c_set_slave_addr(\*FILE,$addr) or print("Can't set address to $_?!?\n"),
|
||||
next;
|
||||
i2c_set_slave_addr(\*FILE,$addr) or
|
||||
printf("Client at address 0x%02x can not be probed - unload all client drivers first!\n",$addr), next;
|
||||
|
||||
next unless i2c_smbus_write_quick(\*FILE,$SMBUS_WRITE) >= 0;
|
||||
printf "Client found at address 0x%02x\n",$addr;
|
||||
|
Reference in New Issue
Block a user