Skip to content

Commit

Permalink
fixup for gpio_hold
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Nov 17, 2024
1 parent 597fea1 commit 0bb43d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shelly_input_pin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

#include "mgos.hpp"

#if CS_PLATFORM != CS_P_ESP8266
#include "driver/gpio.h"
#endif

namespace shelly {

InputPin::InputPin(int id, int pin, int on_value, enum mgos_gpio_pull_type pull,
Expand Down
3 changes: 3 additions & 0 deletions src/shelly_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
#include "mgos.hpp"
#include "mgos_gpio.h"

#if CS_PLATFORM != CS_P_ESP8266
#include "driver/gpio.h"
#endif


#ifdef MGOS_HAVE_PWM
#include "mgos_pwm.h"
Expand Down

0 comments on commit 0bb43d5

Please sign in to comment.