Skip to content

Commit

Permalink
reboot after factory reset
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsss655 committed Jan 13, 2024
1 parent e9bb31e commit 7ca63de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions board.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "sram-overlay.h"
#endif
#include "ui/menu.h"
#include "ARMCM0.h"

static const uint32_t gDefaultFrequencyTable[] =
{
Expand Down Expand Up @@ -885,5 +886,7 @@ void BOARD_FactoryReset(bool bIsAll)
gRxVfo->Band = FREQUENCY_GetBand(Frequency);
SETTINGS_SaveChannel(MR_CHANNEL_FIRST + i, 0, gRxVfo, 2);
}
// reboot device
NVIC_SystemReset();
}
}

0 comments on commit 7ca63de

Please sign in to comment.