mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Replaced BLE_LOW_POWER with BLE_TX_POWER & updated usages.
This commit is contained in:
parent
7363a4f67d
commit
5370667bd8
3 changed files with 6 additions and 6 deletions
|
|
@ -27,11 +27,7 @@ void SerialBLEInterface::begin(const char* device_name, uint32_t pin_code) {
|
|||
|
||||
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
|
||||
Bluefruit.configPrphConn(250, BLE_GAP_EVENT_LENGTH_MIN, 16, 16); // increase MTU
|
||||
#ifdef BLE_LOW_POWER
|
||||
Bluefruit.setTxPower(0);
|
||||
#else
|
||||
Bluefruit.setTxPower(4);
|
||||
#endif
|
||||
Bluefruit.setTxPower(BLE_TX_POWER);
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setName(device_name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue