Skip to content

Commit

Permalink
Better handling reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Aug 18, 2024
1 parent 3214122 commit 509569e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/targets/pl18/board.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ extern void rtcDisableBackupReg();
void boardOff()
{
lcdOff();
delay_ms(100); // Add a delay to wait for lcdOff

while (pwrPressed()) {
WDG_RESET();
Expand All @@ -271,7 +272,6 @@ void boardOff()
#endif
if (isChargerActive())
{
delay_ms(100); // Add a delay to wait for lcdOff
// RTC->BKP0R = SOFTRESET_REQUEST;
NVIC_SystemReset();
}
Expand Down

0 comments on commit 509569e

Please sign in to comment.