mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-25 17:32:34 +00:00
Init timer interrupt for unsigned firmware
This commit is contained in:
parent
be64864efc
commit
9f50f09421
@ -33,6 +33,7 @@
|
|||||||
#include "layout.h"
|
#include "layout.h"
|
||||||
#include "serialno.h"
|
#include "serialno.h"
|
||||||
#include "rng.h"
|
#include "rng.h"
|
||||||
|
#include "timer.h"
|
||||||
|
|
||||||
void layoutFirmwareHash(const uint8_t *hash)
|
void layoutFirmwareHash(const uint8_t *hash)
|
||||||
{
|
{
|
||||||
@ -149,10 +150,9 @@ int main(void)
|
|||||||
int signed_firmware = signatures_ok(hash);
|
int signed_firmware = signatures_ok(hash);
|
||||||
if (SIG_OK != signed_firmware) {
|
if (SIG_OK != signed_firmware) {
|
||||||
show_unofficial_warning(hash);
|
show_unofficial_warning(hash);
|
||||||
|
timer_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
delay(100000);
|
|
||||||
|
|
||||||
load_app(signed_firmware);
|
load_app(signed_firmware);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user