From d9c3f61a5447c69d57bfe13d62bd2593a47b22a5 Mon Sep 17 00:00:00 2001 From: Markus Kirberg Date: Sun, 29 Dec 2024 11:06:38 +0000 Subject: [PATCH] conditional only if led support --- src/shelly_statusled.cpp | 3 +++ src/shelly_statusled.hpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/shelly_statusled.cpp b/src/shelly_statusled.cpp index 4a8c8d84..6edb7b03 100644 --- a/src/shelly_statusled.cpp +++ b/src/shelly_statusled.cpp @@ -15,6 +15,7 @@ * limitations under the License. */ +#ifdef MGOS_CONFIG_HAVE_LED #include "shelly_statusled.hpp" namespace shelly { @@ -72,3 +73,5 @@ Status StatusLED::SetState(bool on, const char *source) { } } // namespace shelly + +#endif diff --git a/src/shelly_statusled.hpp b/src/shelly_statusled.hpp index 6eb1229d..bda6bd12 100644 --- a/src/shelly_statusled.hpp +++ b/src/shelly_statusled.hpp @@ -15,6 +15,8 @@ * limitations under the License. */ +#ifdef MGOS_CONFIG_HAVE_LED + #pragma once #include "shelly_output.hpp" @@ -59,3 +61,5 @@ class StatusLED : public Output { }; } // namespace shelly + +#endif \ No newline at end of file