Skip to content

Commit

Permalink
MicroBitBLEManager - Move MICROBIT_BLE_MAXIMUM_BONDS to MicroBitConfig (
Browse files Browse the repository at this point in the history
#299)

* Move MICROBIT_BLE_MAXIMUM_BONDS to MicroBitConfig
  • Loading branch information
martinwork committed Aug 4, 2023
1 parent 8f317c4 commit 1cad1f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions inc/MicroBitConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@
#define MICROBIT_BLE_ADVERTISING_INTERVAL 50
#endif

// Define the default maximum number of BLE bonds
#ifndef MICROBIT_BLE_MAXIMUM_BONDS
#define MICROBIT_BLE_MAXIMUM_BONDS 4
#endif

// Defines default power level of the BLE radio transmitter.
// Valid values are in the range 0..7 inclusive, with 0 being the lowest power and 7 the highest power.
// Based on trials undertaken by the BBC, the radio is normally set to a low power level
Expand Down
1 change: 0 additions & 1 deletion inc/bluetooth/MicroBitBLEManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ DEALINGS IN THE SOFTWARE.

#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_EDDYSTONE_ADV_INTERVAL 400
Expand Down

0 comments on commit 1cad1f6

Please sign in to comment.