Commit 8d2016c
committed
refactor(core): show backup success after I/O-related errors
In case the host is unavailable, #6651 will stop sending ButtonRequests.
This PR makes sure that `show_backup_success()` won't fail if there was
an error during the backup process - so the success screen will be
shown to the user.
Currently THP debug builds fail with an assertion if the FW tries to
write again before the previous write was ACKed, so this PR makes sure
that after an error no ButtonRequest will be sent after #6651 is merged.
Note: writing the secret to storage is not affected by this change
(since it doesn't access the active context / button request handler).
[no changelog]1 parent 2b46012 commit 8d2016c
1 file changed
Lines changed: 16 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| |||
0 commit comments