1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

boardloader: rename reset_flags_init to reset_flags_check

This commit is contained in:
Pavol Rusnak 2017-12-09 14:36:02 +01:00
parent f0013b0318
commit 6b94fd26e4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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

View File

@ -148,7 +148,7 @@ static secbool copy_sdcard(void)
int main(void)
{
if (sectrue != reset_flags_init()) {
if (sectrue != reset_flags_check()) {
return 1;
}