Skip to content

Commit

Permalink
fix(core): restore RSOD info
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
TychoVrahe committed Dec 13, 2024
1 parent 75ee4dc commit 791340c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions core/embed/util/rsod/rsod.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@ void rsod_terminal(const systask_postmortem_t* pminfo) {
message = message_buf;
break;
case TASK_TERM_REASON_ERROR:
title = pminfo->error.title;
message = pminfo->error.message;
footer = pminfo->error.footer;
if (pminfo->error.title[0] != '\0') {
title = pminfo->error.title;
}
if (pminfo->error.message[0] != '\0') {
message = pminfo->error.message;
}
if (pminfo->error.footer[0] != '\0') {
footer = pminfo->error.footer;
}
break;
case TASK_TERM_REASON_FATAL:
message = pminfo->fatal.expr;
Expand Down Expand Up @@ -116,9 +122,15 @@ void rsod_gui(const systask_postmortem_t* pminfo) {
break;

case TASK_TERM_REASON_ERROR:
title = pminfo->error.title;
message = pminfo->error.message;
footer = pminfo->error.footer;
if (pminfo->error.title[0] != '\0') {
title = pminfo->error.title;
}
if (pminfo->error.message[0] != '\0') {
message = pminfo->error.message;
}
if (pminfo->error.footer[0] != '\0') {
footer = pminfo->error.footer;
}
break;

case TASK_TERM_REASON_FATAL:
Expand Down

0 comments on commit 791340c

Please sign in to comment.