Skip to content

Commit

Permalink
conditional only if led support
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Dec 29, 2024
1 parent e0d151a commit d9c3f61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shelly_statusled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* limitations under the License.
*/

#ifdef MGOS_CONFIG_HAVE_LED
#include "shelly_statusled.hpp"

namespace shelly {
Expand Down Expand Up @@ -72,3 +73,5 @@ Status StatusLED::SetState(bool on, const char *source) {
}

} // namespace shelly

#endif
4 changes: 4 additions & 0 deletions src/shelly_statusled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#ifdef MGOS_CONFIG_HAVE_LED

#pragma once

#include "shelly_output.hpp"
Expand Down Expand Up @@ -59,3 +61,5 @@ class StatusLED : public Output {
};

} // namespace shelly

#endif

0 comments on commit d9c3f61

Please sign in to comment.