This commit is contained in:
KPrivitt 2026-04-20 10:53:44 +02:00 committed by GitHub
commit 4f5f8fb628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);