Apply HDC1080 patch from @Hsxsky

See also 105ac63d62
This commit is contained in:
Otto Winter 2019-10-15 20:53:59 +02:00
parent a0046a2e55
commit 23f99908db
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -19,7 +19,7 @@ void HDC1080Component::setup() {
0b00000000 // reserved
};
if (this->write_bytes(HDC1080_CMD_CONFIGURATION, data, 2)) {
if (!this->write_bytes(HDC1080_CMD_CONFIGURATION, data, 2)) {
this->mark_failed();
return;
}