Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
disable esp32 bluetooth
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Jan 31, 2021
1 parent d8d7867 commit 01b9ee2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#if defined(ESP32)
#include "driver/adc.h"
#include <esp_bt.h>
#endif

#if defined(EMSESP_TEST)
Expand Down Expand Up @@ -222,6 +223,10 @@ void System::other_init() {
analog_enabled_ = settings.analog_enabled;
});
#ifdef ESP32
// Wifi power settings 2 - 19.5dBm, raw values 4/dBm (8-78)
// WiFi.setTxPower(WIFI_POWER_13dBm);
btStop();
esp_bt_controller_disable();
if (analog_enabled_) {
adc_power_on();
} else {
Expand Down

0 comments on commit 01b9ee2

Please sign in to comment.