Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/helpers/NRF52Board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,15 @@ bool NRF52Board::startOTAUpdate(const char *id, char reply[]) {
Bluefruit.configPrphConn(92, BLE_GAP_EVENT_LENGTH_MIN, 16, 16);

Bluefruit.begin(1, 0);
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4,(nRF52840 only) 8
// - nRF52832: -40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +3dBm and +4dBm.
// - nRF52840: -40dBm, -20dBm, -16dBm, -12dBm, -8dBm, -4dBm, 0dBm, +2dBm, +3dBm, +4dBm,
// +5dBm, +6dBm, +7dBm and +8dBm.
#if defined(NRF52832_XXAA)
Bluefruit.setTxPower(4);
#elif defined(NRF52840_XXAA) || defined(NRF52833_XXAA)
Bluefruit.setTxPower(8);
#endif
// Set the BLE device name
Bluefruit.setName(ota_name);

Expand Down