Fix ct_clamp update

Fixes https://github.com/esphome/issues/issues/684
This commit is contained in:
Otto Winter 2019-10-14 12:06:23 +02:00
parent 9d7f76773d
commit e207c6ad84
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -59,7 +59,7 @@ void CTClampSensor::update() {
} }
void CTClampSensor::loop() { void CTClampSensor::loop() {
if (!this->is_sampling_ || !this->is_calibrating_offset_) if (!this->is_sampling_ && !this->is_calibrating_offset_)
return; return;
// Perform a single sample // Perform a single sample