Skip to content

Commit c082950

Browse files
Fix missing response APDU when continuing to review EIP-191 messages
Introduced in 5950c78
1 parent 4103eb7 commit c082950

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src_features/signMessage/cmd_signMessage.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,13 @@ void skip_rest_of_message(void) {
311311
* The user has decided to see the next chunk of the message
312312
*/
313313
void continue_displaying_message(void) {
314+
uint16_t sw = APDU_RESPONSE_OK;
315+
314316
reset_ui_buffer();
315317
if (unprocessed_length() > 0) {
316-
feed_display();
318+
sw = feed_display();
319+
}
320+
if (sw != APDU_NO_RESPONSE) {
321+
io_seproxyhal_send_status(sw, 0, sw != APDU_RESPONSE_OK, sw != APDU_RESPONSE_OK);
317322
}
318323
}

0 commit comments

Comments
 (0)