Change SHT1x sensor detection

Change SHT1x sensor initialization from pre-teleperiod to once during restart to fix I2C interference
This commit is contained in:
Theo Arends 2018-07-09 12:24:24 +02:00
parent f9ce86a6e8
commit f81e0eb2e4
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
/* 6.1.0a
* Change SHT1x sensor initialization from pre-teleperiod to once during restart to fix I2C interference
* Add wifi and mqtt status led blinkyblinky to be disabled by SetOption31 1. Does not work when LedPower is On (deliberate) (#871, #2230, #3114, #3155)
* Add experimental (untested) TM1638 switch support (#2226)
* Add support for APDS9960 proximity sensor (#3051)

View File

@ -231,7 +231,8 @@ boolean Xsns07(byte function)
if (i2c_flg) {
switch (function) {
case FUNC_PREP_BEFORE_TELEPERIOD:
// case FUNC_PREP_BEFORE_TELEPERIOD: // As this is not a real I2C device it may interfere with other sensors
case FUNC_INIT: // Move detection to restart only removing interference
ShtDetect();
break;
case FUNC_JSON_APPEND: