mirror of
https://github.com/esphome/esphome.git
synced 2025-01-21 03:45:58 +01:00
Update hdc2010.cpp
This commit is contained in:
parent
96930fbb84
commit
343581ae88
1 changed files with 3 additions and 3 deletions
|
@ -72,9 +72,9 @@ void HDC2010Component::update() {
|
|||
|
||||
// Trigger measurement
|
||||
uint8_t configContents;
|
||||
configContents = readReg(MEASUREMENT_CONFIG);
|
||||
configContents = (configContents | 0x01);
|
||||
writeReg(MEASUREMENT_CONFIG, configContents);
|
||||
read_register(CONFIG, &configContents, 1);
|
||||
configContents |= 0x01;
|
||||
this->write_bytes(CONFIG, &configContents, 1);
|
||||
|
||||
// delayMicroseconds(1000); // 1ms delay after triggering the sample
|
||||
|
||||
|
|
Loading…
Reference in a new issue