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 Jan 10, 2025
1 parent 48cbb9a commit ad7299b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/shelly_statusled.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "shelly_statusled.hpp"

#ifdef MGOS_CONFIG_HAVE_LED

namespace shelly {

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

} // namespace shelly

#endif
7 changes: 6 additions & 1 deletion src/shelly_statusled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
* limitations under the License.
*/

#include "mgos_config.h"

#ifdef MGOS_CONFIG_HAVE_LED

#pragma once

#include "shelly_output.hpp"

#include "mgos_config.h"
#include "mgos_neopixel.h"

namespace shelly {
Expand Down Expand Up @@ -59,3 +62,5 @@ class StatusLED : public Output {
};

} // namespace shelly

#endif

0 comments on commit ad7299b

Please sign in to comment.