mirror of https://github.com/arendst/Tasmota.git
Fix LM75AD detection on different address then 0x48.
This commit is contained in:
parent
6ce3e6be7c
commit
1e4c31c10b
|
@ -56,7 +56,7 @@ void LM75ADDetect(void)
|
||||||
if (I2cActive(lm75ad_address)) {
|
if (I2cActive(lm75ad_address)) {
|
||||||
continue; }
|
continue; }
|
||||||
if (!I2cSetDevice(lm75ad_address)) {
|
if (!I2cSetDevice(lm75ad_address)) {
|
||||||
break; // do not make the next step without a confirmed device on the bus
|
continue; // do not make the next step without a confirmed device on the bus
|
||||||
}
|
}
|
||||||
uint16_t buffer;
|
uint16_t buffer;
|
||||||
if (I2cValidRead16(&buffer, lm75ad_address, LM75_THYST_REGISTER)) {
|
if (I2cValidRead16(&buffer, lm75ad_address, LM75_THYST_REGISTER)) {
|
||||||
|
|
Loading…
Reference in New Issue