@ -132,7 +132,7 @@ void periph_init(void)
NVIC_EnableIRQ(PVD_IRQn);
}
secbool reset_flags_init(void)
secbool reset_flags_check(void)
{
#if PRODUCTION
// this is effective enough that it makes development painful, so only use it for production.
@ -10,6 +10,6 @@ void flash_unlock_option_bytes(void);
uint32_t flash_set_option_bytes(void);
secbool flash_configure_option_bytes(void);
void periph_init(void);
secbool reset_flags_init(void);
secbool reset_flags_check(void);
#endif // BOARDLOADER_LOWLEVEL_H
@ -148,7 +148,7 @@ static secbool copy_sdcard(void)
int main(void)
if (sectrue != reset_flags_init()) {
if (sectrue != reset_flags_check()) {
return 1;