This commit is contained in:
Mark Qvist 2024-09-30 19:18:30 +02:00
parent a9a68d164e
commit 304cdd2968
6 changed files with 16 additions and 8 deletions

View File

@ -1,3 +1,7 @@
#include "Boards.h"
#if HAS_BLE
#include "BLESerial.h"
uint32_t bt_passkey_callback();
@ -127,3 +131,5 @@ void BLESerial::SetupSerialService() {
}
BLESerial::BLESerial() { }
#endif

View File

@ -1,4 +1,7 @@
#pragma once
#include "Boards.h"
#if HAS_BLE
#include <Arduino.h>
#include <BLEDevice.h>
@ -109,3 +112,5 @@ private:
bool started = false;
};
#endif

View File

@ -14,7 +14,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#if MCU_VARIANT == MCU_ESP32
#elif MCU_VARIANT == MCU_NRF52
#endif

View File

@ -149,7 +149,6 @@
#define HAS_DISPLAY true
#define HAS_PMU true
#define HAS_BLUETOOTH true
#define HAS_BLE true
#define HAS_CONSOLE true
#define HAS_SD false
#define HAS_EEPROM true
@ -185,7 +184,6 @@
#elif BOARD_MODEL == BOARD_LORA32_V1_0
#define HAS_DISPLAY true
#define HAS_BLUETOOTH true
#define HAS_BLE true
#define HAS_CONSOLE true
#define HAS_EEPROM true
const int pin_cs = 18;
@ -202,7 +200,6 @@
#elif BOARD_MODEL == BOARD_LORA32_V2_0
#define HAS_DISPLAY true
#define HAS_BLUETOOTH true
#define HAS_BLE true
#define HAS_CONSOLE true
#define HAS_EEPROM true
const int pin_cs = 18;
@ -219,7 +216,6 @@
#elif BOARD_MODEL == BOARD_LORA32_V2_1
#define HAS_DISPLAY true
#define HAS_BLUETOOTH true
#define HAS_BLE true
#define HAS_PMU true
#define HAS_CONSOLE true
#define HAS_EEPROM true

View File

@ -224,8 +224,10 @@ inline void kiss_write_packet() {
#if MCU_VARIANT == MCU_ESP32 || MCU_VARIANT == MCU_NRF52
packet_ready = false;
#endif
#if MCU_VARIANT == MCU_ESP32 && HAS_BLE
bt_flush();
#if MCU_VARIANT == MCU_ESP32
#if HAS_BLE
bt_flush();
#endif
#endif
}

Binary file not shown.