mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-15 02:48:11 +00:00
fix(core): restore RSOD info
[no changelog]
This commit is contained in:
parent
75ee4dc7a7
commit
791340cc6b
@ -57,9 +57,15 @@ void rsod_terminal(const systask_postmortem_t* pminfo) {
|
|||||||
message = message_buf;
|
message = message_buf;
|
||||||
break;
|
break;
|
||||||
case TASK_TERM_REASON_ERROR:
|
case TASK_TERM_REASON_ERROR:
|
||||||
title = pminfo->error.title;
|
if (pminfo->error.title[0] != '\0') {
|
||||||
message = pminfo->error.message;
|
title = pminfo->error.title;
|
||||||
footer = pminfo->error.footer;
|
}
|
||||||
|
if (pminfo->error.message[0] != '\0') {
|
||||||
|
message = pminfo->error.message;
|
||||||
|
}
|
||||||
|
if (pminfo->error.footer[0] != '\0') {
|
||||||
|
footer = pminfo->error.footer;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TASK_TERM_REASON_FATAL:
|
case TASK_TERM_REASON_FATAL:
|
||||||
message = pminfo->fatal.expr;
|
message = pminfo->fatal.expr;
|
||||||
@ -116,9 +122,15 @@ void rsod_gui(const systask_postmortem_t* pminfo) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case TASK_TERM_REASON_ERROR:
|
case TASK_TERM_REASON_ERROR:
|
||||||
title = pminfo->error.title;
|
if (pminfo->error.title[0] != '\0') {
|
||||||
message = pminfo->error.message;
|
title = pminfo->error.title;
|
||||||
footer = pminfo->error.footer;
|
}
|
||||||
|
if (pminfo->error.message[0] != '\0') {
|
||||||
|
message = pminfo->error.message;
|
||||||
|
}
|
||||||
|
if (pminfo->error.footer[0] != '\0') {
|
||||||
|
footer = pminfo->error.footer;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TASK_TERM_REASON_FATAL:
|
case TASK_TERM_REASON_FATAL:
|
||||||
|
Loading…
Reference in New Issue
Block a user