Bluetooth Classic fix

This commit is contained in:
richonguzman 2024-05-18 22:47:23 -04:00
parent 31bf59cd2f
commit f4c3bead6a
4 changed files with 4 additions and 4 deletions

View File

@ -119,7 +119,7 @@ void setup() {
WiFi.mode(WIFI_OFF);
logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "Main", "WiFi controller stopped");
if (Config.bluetoothType == 0 || Config.bluetoothType == 3) {
if (Config.bluetoothType == 0 || Config.bluetoothType == 2) {
BLE_Utils::setup();
} else {
#ifdef HAS_BT_CLASSIC

View File

@ -14,7 +14,7 @@ extern logging::Logger logger;
extern TinyGPSPlus gps;
extern bool bluetoothConnected;
bool bluetoothActive = Config.bluetoothActive;
bool bluetoothActive;
namespace BLUETOOTH_Utils {
String serialReceived;
@ -22,6 +22,7 @@ namespace BLUETOOTH_Utils {
bool useKiss = false;
void setup() {
bluetoothActive = Config.bluetoothActive;
if (!bluetoothActive) {
btStop();
esp_bt_controller_disable();

View File

@ -16,7 +16,7 @@ Configuration::Configuration() {
}
void Configuration::readFile(fs::FS &fs, const char *fileName) {
StaticJsonDocument<2560> data;
StaticJsonDocument<2800> data;
File configFile = fs.open(fileName, "r");
DeserializationError error = deserializeJson(data, configFile);
if (error) {

View File

@ -43,7 +43,6 @@ extern String winlinkAlias;
extern String winlinkAliasComplete;
extern bool winlinkCommentState;
extern int wxModuleType;
//extern bool bmeSensorFound;
String freqChangeWarning;
uint8_t lowBatteryPercent = 21;