Skip to content

Commit 9a042e4

Browse files
committed
Prevent sleep during OTA update
In order to not interrupt the OTA update, prevent any sleep requests after the "start ota" command has been activated. Signed-off-by: Frieder Schrempf <frieder@fris.de>
1 parent fe17894 commit 9a042e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/helpers/NRF52Board.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ float NRF52Board::getMCUTemperature() {
5555
}
5656

5757
bool NRF52BoardOTA::startOTAUpdate(const char *id, char reply[]) {
58+
preventSleep();
5859
// Config the peripheral connection with maximum bandwidth
5960
// more SRAM required by SoftDevice
6061
// Note: All config***() function must be called before begin()

0 commit comments

Comments
 (0)