mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 11:16:34 +00:00
reduce false positive chirp sensor detection (#22736)
This commit is contained in:
parent
dc531de02b
commit
5f95b33220
@ -240,6 +240,8 @@ bool ChirpScan()
|
||||
delay(2);
|
||||
chirp_sensor[chirp_found_sensors].version = ChirpReadVersion(address);
|
||||
if (chirp_sensor[chirp_found_sensors].version > 0) {
|
||||
// try to confirm by reading the address
|
||||
if (address != I2cRead8(address, CHIRP_GET_ADDRESS)) { continue; }
|
||||
I2cSetActiveFound(address, "CHIRP");
|
||||
if (chirp_found_sensors<CHIRP_MAX_SENSOR_COUNT) {
|
||||
chirp_sensor[chirp_found_sensors].address = address; // push next sensor, as long as there is space in the array
|
||||
|
Loading…
x
Reference in New Issue
Block a user