+#include "Boards.h"
+
+#if HAS_BLE
+
#include "BLESerial.h"
uint32_t bt_passkey_callback();
}
BLESerial::BLESerial() { }
+
+#endif
\ No newline at end of file
-#pragma once
+#include "Boards.h"
+
+#if HAS_BLE
+
#include <Arduino.h>
#include <BLEDevice.h>
bool started = false;
};
+
+#endif
\ No newline at end of file
// along with this program. If not, see <https://www.gnu.org/licenses/>.
#if MCU_VARIANT == MCU_ESP32
-
#elif MCU_VARIANT == MCU_NRF52
#endif
#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
#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;
#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;
#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
#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
}