1
0
mirror of https://github.com/esphome/esphome.git synced 2024-10-06 10:50:58 +01:00

Fix typo in Component::set_interval (#767)

Ouch...
This commit is contained in:
Otto Winter 2019-10-18 15:33:18 +02:00 committed by GitHub
parent 1ade7bcb2d
commit aed7b3fbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ void Component::set_timeout(uint32_t timeout, std::function<void()> &&f) { // N
App.scheduler.set_timeout(this, "", timeout, std::move(f)); App.scheduler.set_timeout(this, "", timeout, std::move(f));
} }
void Component::set_interval(uint32_t interval, std::function<void()> &&f) { // NOLINT void Component::set_interval(uint32_t interval, std::function<void()> &&f) { // NOLINT
App.scheduler.set_timeout(this, "", interval, std::move(f)); App.scheduler.set_interval(this, "", interval, std::move(f));
} }
bool Component::is_failed() { return (this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_FAILED; } bool Component::is_failed() { return (this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_FAILED; }
bool Component::can_proceed() { return true; } bool Component::can_proceed() { return true; }