mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-20 17:52:35 +00:00
nrf52 debugging is supported as long as BLE is not advertising
This commit is contained in:
@@ -43,15 +43,12 @@ void getMacAddr(uint8_t *dmac)
|
||||
|
||||
NRF52Bluetooth *nrf52Bluetooth;
|
||||
|
||||
// FIXME, turn off soft device access for debugging
|
||||
static bool isSoftDeviceAllowed = false;
|
||||
|
||||
static bool bleOn = false;
|
||||
void setBluetoothEnable(bool on)
|
||||
{
|
||||
if (on != bleOn) {
|
||||
if (on) {
|
||||
if (!nrf52Bluetooth && isSoftDeviceAllowed) {
|
||||
if (!nrf52Bluetooth) {
|
||||
nrf52Bluetooth = new NRF52Bluetooth();
|
||||
nrf52Bluetooth->setup();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user