1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +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);
}
void SHTCXComponent::sleep() {
if (!this->write_command_(SHTCX_COMMAND_SLEEP)) {
this->write_command_(SHTCX_COMMAND_SLEEP)
return;
}
}