From 292698123bfada13d37f491ccf7cf970f47a1772 Mon Sep 17 00:00:00 2001 From: Luis Teixeira Date: Tue, 10 Mar 2020 23:33:09 +0000 Subject: [PATCH] Minor correction to the description. Slightly simplified declaration of the sensor in the support_features.ino. --- I2CDEVICES.md | 2 +- tasmota/support_features.ino | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/I2CDEVICES.md b/I2CDEVICES.md index 2a89ba8aa..7c1e4d772 100644 --- a/I2CDEVICES.md +++ b/I2CDEVICES.md @@ -66,4 +66,4 @@ Index | Define | Driver | Device | Address(es) | Description 42 | USE_DS1624 | xsns_59 | DS1624 | 0x48 - 0x4F | Temperature sensor 43 | USE_AHT1x | xsns_63 | AHT10/15 | 0x38 | Temperature and humidity sensor 44 | USE_WEMOS_MOTOR_V1 | xdrv_34 | | 0x2D - 0x30 | WEMOS motor shield v1.0.0 (6612FNG) - 92 | USE_HDC1080 | xsns_92 | HDC1080 | 0x40 | Digital Humidity Sensor with Temperature Sensor + 92 | USE_HDC1080 | xsns_92 | HDC1080 | 0x40 | Temperature and Humidity sensor diff --git a/tasmota/support_features.ino b/tasmota/support_features.ino index 213219621..0dd97f76f 100644 --- a/tasmota/support_features.ino +++ b/tasmota/support_features.ino @@ -254,8 +254,8 @@ void GetFeatures(void) #ifdef USE_SHT feature_sns1 |= 0x00000100; // xsns_07_sht1x.ino #endif -#ifdef USE_HTU - feature_sns1 |= 0x00000200; // xsns_08_htu21.ino +#if defined(USE_HTU) || defined(USE_HDC1080) + feature_sns1 |= 0x00000200; // xsns_08_htu21.ino or xsns_92_hdc1080.ino #endif #ifdef USE_BMP feature_sns1 |= 0x00000400; // xsns_09_bmp.ino @@ -323,10 +323,6 @@ void GetFeatures(void) #ifdef USE_TM1638 feature_sns1 |= 0x80000000; // xsns_28_tm1638.ino #endif -// TODO not sure if is the correct feature setting for this sensor: -#ifdef USE_HDC1080 - feature_sns1 |= 0x00000200; // xsns_92_hdc1080.ino -#endif /*********************************************************************************************/ feature_sns2 = 0x00000000;