Browse Source
Merge pull request #3048 from entr0p1/fix/startota-failure-recovery
nRF52840 "start ota" Failure Recovery
pull/1809/merge
Liam Cottle
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
src/helpers/NRF52Board.cpp
|
|
|
@ -396,7 +396,8 @@ bool NRF52Board::startOTAUpdate(const char *id, char reply[]) { |
|
|
|
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX); |
|
|
|
Bluefruit.configPrphConn(92, BLE_GAP_EVENT_LENGTH_MIN, 16, 16); |
|
|
|
|
|
|
|
Bluefruit.begin(1, 0); |
|
|
|
if (!Bluefruit.begin(1, 0)) return false; |
|
|
|
|
|
|
|
// Set max power. Accepted values are: -40, -30, -20, -16, -12, -8, -4, 0, 4
|
|
|
|
Bluefruit.setTxPower(4); |
|
|
|
// Set the BLE device name
|
|
|
|
|