Add guards to not compile BT code if not enabled

This commit is contained in:
me-no-dev
2017-09-21 19:08:18 +08:00
parent 4092fc409e
commit c66a020e80
4 changed files with 13 additions and 1 deletions

View File

@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
#include "SimpleBLE.h"
#include "esp32-hal-log.h"
@ -125,3 +127,5 @@ void SimpleBLE::end()
{
_stop_gap();
}
#endif