1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-15 07:08:20 +00:00

Update esphome/components/shtcx/shtcx.cpp

Good point.

Co-Authored-By: Otto Winter <otto@otto-winter.com>
This commit is contained in:
Nad 2019-07-28 14:56:03 +02:00 committed by GitHub
parent 75d2de79d8
commit 851a4fdf26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ void SHTCXComponent::soft_reset() {
delayMicroseconds(200); delayMicroseconds(200);
} }
void SHTCXComponent::sleep() { void SHTCXComponent::sleep() {
if (!this->write_command_(SHTCX_COMMAND_SLEEP)) { this->write_command_(SHTCX_COMMAND_SLEEP)
return; return;
} }
} }