Skip to content

Commit

Permalink
Allow Arduino to be run without BT support in IDF
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed May 6, 2017
1 parent a38ffe5 commit b879f80
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ menu "Arduino Configuration"
config ENABLE_ARDUINO_DEPENDS
bool
select LWIP_SO_RCVBUF
select BT_ENABLED
select ETHERNET
select WIFI_ENABLED
select ESP32_PHY_CALIBRATION_AND_DATA_STORAGE
Expand Down
3 changes: 2 additions & 1 deletion cores/esp32/esp32-hal-bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#if CONFIG_BT_ENABLED

#include "esp32-hal-bt.h"

Expand Down Expand Up @@ -62,5 +63,5 @@ bool btStop(){
return false;
}


#endif

4 changes: 4 additions & 0 deletions cores/esp32/esp32-hal-bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include "esp32-hal.h"

#if CONFIG_BT_ENABLED

#ifdef __cplusplus
extern "C" {
#endif
Expand All @@ -29,4 +31,6 @@ bool btStop();
}
#endif

#endif

#endif /* _ESP32_ESP32_HAL_BT_H_ */

0 comments on commit b879f80

Please sign in to comment.