1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 15:18:16 +00:00

Fix lint issues

This commit is contained in:
valordk 2019-07-27 22:11:08 +02:00
parent c11e92f295
commit 75d2de79d8
2 changed files with 7 additions and 13 deletions

View File

@ -11,9 +11,6 @@ static const uint16_t SHTCX_COMMAND_WAKEUP = 0x3517;
static const uint16_t SHTCX_COMMAND_READ_ID_REGISTER = 0xEFC8; static const uint16_t SHTCX_COMMAND_READ_ID_REGISTER = 0xEFC8;
static const uint16_t SHTCX_COMMAND_SOFT_RESET = 0x805D; static const uint16_t SHTCX_COMMAND_SOFT_RESET = 0x805D;
static const uint16_t SHTCX_COMMAND_POLLING_H = 0x7866; static const uint16_t SHTCX_COMMAND_POLLING_H = 0x7866;
//static const uint16_t SHTCX_COMMAND_READ_STATUS = 0xF32D;
//static const uint16_t SHTCX_COMMAND_CLEAR_STATUS = 0x3041;
void SHTCXComponent::setup() { void SHTCXComponent::setup() {
ESP_LOGCONFIG(TAG, "Setting up SHTCx..."); ESP_LOGCONFIG(TAG, "Setting up SHTCx...");

View File

@ -7,10 +7,7 @@
namespace esphome { namespace esphome {
namespace shtcx { namespace shtcx {
enum SHTCXType { enum SHTCXType { SHTCX_TYPE_SHTC1 = 0, SHTCX_TYPE_SHTC3 };
SHTCX_TYPE_SHTC1 = 0,
SHTCX_TYPE_SHTC3
};
/// This class implements support for the SHT3x-DIS family of temperature+humidity i2c sensors. /// This class implements support for the SHT3x-DIS family of temperature+humidity i2c sensors.
class SHTCXComponent : public PollingComponent, public i2c::I2CDevice { class SHTCXComponent : public PollingComponent, public i2c::I2CDevice {