mirror of
https://github.com/esphome/esphome.git
synced 2025-01-08 13:51:43 +01:00
Update hdc2010.cpp
This commit is contained in:
parent
465839c7b2
commit
9526d54c91
1 changed files with 7 additions and 7 deletions
|
@ -93,22 +93,22 @@ void HDC2010Component::update() {
|
|||
|
||||
// void HDC2010::enableHeater()
|
||||
// {
|
||||
// uint16_t configContents; //Stores current contents of config register
|
||||
// uint16_t configContents; //Stores current contents of config register
|
||||
|
||||
// configContents = readReg(CONFIG);
|
||||
// configContents = readReg(CONFIG);
|
||||
|
||||
// //set bit 3 to 1 to enable heater
|
||||
// configContents = (configContents | 0x08);
|
||||
// //set bit 3 to 1 to enable heater
|
||||
// configContents = (configContents | 0x08);
|
||||
|
||||
// writeReg(CONFIG, configContents);
|
||||
// writeReg(CONFIG, configContents);
|
||||
|
||||
// }
|
||||
|
||||
// void HDC2010::disableHeater()
|
||||
// {
|
||||
// uint16_t configContents; //Stores current contents of config register
|
||||
// uint16_t configContents; //Stores current contents of config register
|
||||
|
||||
// configContents = readReg(CONFIG);
|
||||
// configContents = readReg(CONFIG);
|
||||
|
||||
// //set bit 3 to 0 to disable heater (all other bits 1)
|
||||
// configContents = (configContents & 0xF7);
|
||||
|
|
Loading…
Reference in a new issue