From 4d7cd0a09dd3309ef9dcee7923431cb741985e29 Mon Sep 17 00:00:00 2001 From: BeardyWalrus Date: Sat, 3 Oct 2020 17:23:36 -0400 Subject: [PATCH] conditional on needing ESP32 bluetooth header loaded --- platformio.ini | 4 ++-- src/main.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 8dfc9dc5..3e66a7ef 100644 --- a/platformio.ini +++ b/platformio.ini @@ -34,8 +34,8 @@ build_flags = -Wno-missing-field-initializers -Isrc -Isrc/mesh -Isrc/gps -Ilib/n ; leave this commented out to avoid breaking Windows ;upload_port = /dev/ttyUSB0 ;monitor_port = /dev/ttyUSB0 -upload_port = /dev/cu.SLAB_USBtoUART -monitor_port = /dev/cu.SLAB_USBtoUART +;upload_port = /dev/cu.SLAB_USBtoUART +;monitor_port = /dev/cu.SLAB_USBtoUART ; the default is esptool ; upload_protocol = esp-prog diff --git a/src/main.cpp b/src/main.cpp index 57c304b6..9c9b8089 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -152,7 +152,9 @@ void userButtonPressedLong() } void userButtonDoublePressed() { +#ifndef NO_ESP32 disablePin(); +#endif } void setup()