Skip to content

Commit e749dc0

Browse files
committed
more clean up
1 parent b208773 commit e749dc0

File tree

30 files changed

+34
-64
lines changed

30 files changed

+34
-64
lines changed

libraries/Bluefruit52Lib/examples/Central/central_scan/central_scan.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ void setup()
2525
// Initialize Bluefruit with maximum connections as Peripheral = 0, Central = 1
2626
// SRAM usage required by SoftDevice will increase dramatically with number of connections
2727
Bluefruit.begin(0, 1);
28-
29-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
30-
Bluefruit.setTxPower(4);
28+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
3129
Bluefruit.setName("Bluefruit52");
3230

3331
// Start Central Scan

libraries/Bluefruit52Lib/examples/Central/central_scan_advanced/central_scan_advanced.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ void setup()
2929
// Initialize Bluefruit with maximum connections as Peripheral = 0, Central = 1
3030
// SRAM usage required by SoftDevice will increase dramatically with number of connections
3131
Bluefruit.begin(0, 1);
32-
33-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
34-
Bluefruit.setTxPower(4);
32+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
3533

3634
/* Set the device name */
3735
Bluefruit.setName("Bluefruit52");

libraries/Bluefruit52Lib/examples/DualRoles/dual_bleuart/dual_bleuart.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ void setup()
4141
// Initialize Bluefruit with max concurrent connections as Peripheral = 1, Central = 1
4242
// SRAM usage required by SoftDevice will increase with number of connections
4343
Bluefruit.begin(1, 1);
44-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
45-
Bluefruit.setTxPower(4);
44+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
4645
Bluefruit.setName("Bluefruit52 duo");
4746

4847
// Callbacks for Peripheral

libraries/Bluefruit52Lib/examples/Peripheral/StandardFirmataBLE/StandardFirmataBLE.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,9 +791,7 @@ void setup()
791791

792792
Bluefruit.begin();
793793
Bluefruit.setName("Bluefruit52");
794-
795-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
796-
Bluefruit.setTxPower(4);
794+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
797795

798796
// try to go as fast as possible, could be rejected by some central, increase it if needed
799797
// iOS won't negotitate and will mostly use 30ms

libraries/Bluefruit52Lib/examples/Peripheral/adv_advanced/adv_advanced.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ void setup()
3535
Serial.println("----------------------------------------\n");
3636

3737
Bluefruit.begin();
38-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
39-
Bluefruit.setTxPower(4);
38+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
4039
Bluefruit.setName("Bluefruit52");
4140

4241
// Set up and start advertising

libraries/Bluefruit52Lib/examples/Peripheral/ancs/ancs.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ void setup()
5151
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
5252

5353
Bluefruit.begin();
54-
55-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
56-
Bluefruit.setTxPower(4);
54+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
5755
Bluefruit.setName("Bluefruit52");
5856
Bluefruit.Periph.setConnectCallback(connect_callback);
5957
Bluefruit.Periph.setDisconnectCallback(disconnect_callback);

libraries/Bluefruit52Lib/examples/Peripheral/ancs_oled/ancs_oled.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ void setup()
9696
//Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
9797

9898
Bluefruit.begin();
99-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
100-
Bluefruit.setTxPower(4);
99+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
101100
Bluefruit.setName("Bluefruit52");
102101
Bluefruit.Periph.setConnectCallback(connect_callback);
103102
Bluefruit.Periph.setDisconnectCallback(disconnect_callback);

libraries/Bluefruit52Lib/examples/Peripheral/beacon/beacon.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ void setup()
4343

4444
// off Blue LED for lowest power consumption
4545
Bluefruit.autoConnLed(false);
46-
47-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
48-
Bluefruit.setTxPower(0);
46+
Bluefruit.setTxPower(0); // Check bluefruit.h for supported values
4947
Bluefruit.setName("Bluefruit52");
5048

5149
// Manufacturer ID is required for Manufacturer Specific Data

libraries/Bluefruit52Lib/examples/Peripheral/blemidi/blemidi.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void setup()
5151

5252
Bluefruit.begin();
5353
Bluefruit.setName("Bluefruit52 MIDI");
54-
Bluefruit.setTxPower(4);
54+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
5555

5656
// Setup the on board blue LED to be enabled on CONNECT
5757
Bluefruit.autoConnLed(true);

libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ void setup()
3838
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
3939

4040
Bluefruit.begin();
41-
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
42-
Bluefruit.setTxPower(4);
41+
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
4342
Bluefruit.setName("Bluefruit52");
4443
//Bluefruit.setName(getMcuUniqueID()); // useful testing with multiple central connections
4544
Bluefruit.Periph.setConnectCallback(connect_callback);

0 commit comments

Comments
 (0)