layoutDialog(DIALOG_ICON_ERROR,NULL,NULL,NULL,"Unofficial firmware","aborted.",NULL,"Unplug your TREZOR","and see our support","page at mytrezor.com");
system_halt();
}
voidshow_unofficial_warning(uint8_t*hash)
{
layoutDialog(DIALOG_ICON_WARNING,"Abort","I'll take the risk",NULL,"WARNING!",NULL,"Unofficial firmware","detected.",NULL,NULL);
layoutDialog(DIALOG_ICON_ERROR,NULL,NULL,NULL,"Unofficial firmware","aborted.",NULL,"Unplug your TREZOR","and see our support","page at mytrezor.com");
system_halt();
layoutFirmwareHash(hash);
do{
delay(100000);
buttonUpdate();
}while(!button.YesUp&&!button.NoUp);
if(button.NoUp){
show_halt();// no button was pressed -> halt
}
// everything is OK, user pressed 2x Continue -> continue program