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 Jan 29, 2022
1 parent 4d8af24 commit 8f31fd9
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 @@ -224,6 +224,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 8f31fd9

Please sign in to comment.