microbit: Promote constants in MicroBitBLEManager to .h file

Moved configuration constants from .cpp to .h file, so that they can be reused
more easily from other code, such as the broadcast radio code.
master
Joe Finney 7 years ago
parent 66ed227663
commit e3a23988f6
  1. 5
      inc/MicroBitBLEManager.h
  2. 6
      source/ble-services/MicroBitBLEManager.cpp

@ -39,6 +39,11 @@
#define MICROBIT_BLE_PAIR_SUCCESSFUL 0x08
#define MICROBIT_BLE_PAIRING_TIMEOUT 90
#define MICROBIT_BLE_POWER_LEVELS 8
#define MICROBIT_BLE_MAXIMUM_BONDS 4
#define MICROBIT_BLE_ENABLE_BONDING true
#define MICROBIT_BLE_REQUIRE_MITM true
extern const int8_t MICROBIT_BLE_POWER_LEVEL[];
/**
* Class definition for the MicroBitBLEManager.

@ -21,13 +21,7 @@
#pragma GCC diagnostic pop
#endif
#define MICROBIT_BLE_ENABLE_BONDING true
#define MICROBIT_BLE_REQUIRE_MITM true
#define MICROBIT_PAIRING_FADE_SPEED 4
#define MICROBIT_BLE_POWER_LEVELS 8
#define MICROBIT_BLE_MAXIMUM_BONDS 4
const char* MICROBIT_BLE_MANUFACTURER = "The Cast of W1A";
const char* MICROBIT_BLE_MODEL = "BBC micro:bit";

Loading…
Cancel
Save