diff --git a/esphome/components/host/helpers.cpp b/esphome/components/host/helpers.cpp index f8b7a0c5f08..4896c441f7d 100644 --- a/esphome/components/host/helpers.cpp +++ b/esphome/components/host/helpers.cpp @@ -31,6 +31,10 @@ bool random_bytes(uint8_t *data, size_t len) { return true; } +// The host has no interrupts to mask +InterruptLock::InterruptLock() {} +InterruptLock::~InterruptLock() {} + // Host platform uses std::mutex for proper thread synchronization Mutex::Mutex() { handle_ = new std::mutex(); } Mutex::~Mutex() { delete static_cast(handle_); }