From 77b9759f36efd10cc2a4a84397c072d120a66380 Mon Sep 17 00:00:00 2001 From: Montvydas Klumbys Date: Sat, 29 Jan 2022 10:47:35 +0200 Subject: [PATCH] Fixed the AdaDFU does not re-appear after a failed OTA (https://github.com/adafruit/Adafruit_nRF52_Bootloader/issues/259) problem, which now provides safer OTA updates --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 47386ca8..cab43571 100644 --- a/src/main.c +++ b/src/main.c @@ -227,6 +227,7 @@ int main(void) bootloader_app_start(); } + NRF_POWER->GPREGRET = 0xA8; // No application was loaded, reset the system with the OTA DFU update NVIC_SystemReset(); }