mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 08:46:32 +00:00
Merge pull request #11096 from kmalisiewicz/fix-lm75ad-detection
Fix LM75AD detection on different address then 0x48.
This commit is contained in:
commit
7aa679285a
@ -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…
x
Reference in New Issue
Block a user