Skip to content

Commit

Permalink
Fixed the AdaDFU does not re-appear after a failed OTA (adafruit#259)…
Browse files Browse the repository at this point in the history
… problem, which now provides safer OTA updates
  • Loading branch information
Montvydas committed Feb 13, 2023
1 parent a5bd0e6 commit 77b9759
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 77b9759

Please sign in to comment.