From afb9152cc0fd14cc690f18bf1b69f853830b69b1 Mon Sep 17 00:00:00 2001 From: Tomasz Duda Date: Mon, 6 May 2024 20:48:25 +0200 Subject: [PATCH] fix lint --- esphome/components/zephyr_ota_mcumgr/ota_component.cpp | 2 ++ esphome/components/zephyr_ota_mcumgr/ota_component.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/esphome/components/zephyr_ota_mcumgr/ota_component.cpp b/esphome/components/zephyr_ota_mcumgr/ota_component.cpp index 4ff48b2297..2fa9c447fa 100644 --- a/esphome/components/zephyr_ota_mcumgr/ota_component.cpp +++ b/esphome/components/zephyr_ota_mcumgr/ota_component.cpp @@ -1,3 +1,4 @@ +#ifdef USE_ZEPHYR #include "ota_component.h" #include "esphome/core/defines.h" #include "esphome/core/log.h" @@ -115,3 +116,4 @@ void OTAComponent::update_pending() { } // namespace zephyr_ota_mcumgr } // namespace esphome +#endif diff --git a/esphome/components/zephyr_ota_mcumgr/ota_component.h b/esphome/components/zephyr_ota_mcumgr/ota_component.h index 8841fdaa68..65babfebf5 100644 --- a/esphome/components/zephyr_ota_mcumgr/ota_component.h +++ b/esphome/components/zephyr_ota_mcumgr/ota_component.h @@ -1,5 +1,5 @@ #pragma once - +#ifdef USE_ZEPHYR #include "esphome/components/ota/ota_component.h" struct img_mgmt_upload_check; @@ -26,3 +26,4 @@ class OTAComponent : public ota::OTAComponent { } // namespace zephyr_ota_mcumgr } // namespace esphome +#endif