1
0
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:
tychovrahe 2024-12-11 22:23:35 +01:00 committed by TychoVrahe
parent 75ee4dc7a7
commit 791340cc6b

View File

@ -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:
if (pminfo->error.title[0] != '\0') {
title = pminfo->error.title; title = pminfo->error.title;
}
if (pminfo->error.message[0] != '\0') {
message = pminfo->error.message; message = pminfo->error.message;
}
if (pminfo->error.footer[0] != '\0') {
footer = pminfo->error.footer; 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:
if (pminfo->error.title[0] != '\0') {
title = pminfo->error.title; title = pminfo->error.title;
}
if (pminfo->error.message[0] != '\0') {
message = pminfo->error.message; message = pminfo->error.message;
}
if (pminfo->error.footer[0] != '\0') {
footer = pminfo->error.footer; footer = pminfo->error.footer;
}
break; break;
case TASK_TERM_REASON_FATAL: case TASK_TERM_REASON_FATAL: