Skip to content

Commit d38a468

Browse files
authored
fix(legacy): fix OK-23319 & OK-23317 & OK-23311 (#488)
1 parent 7779516 commit d38a468

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

legacy/firmware/protect.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,9 @@ bool inputPassphraseOnDevice(char *passphrase) {
13701370
if (key == KEY_CONFIRM) {
13711371
layoutInputMethod(input_type);
13721372
menu_status = MENU_INPUT_SELECT;
1373+
#if !EMULATOR
1374+
enableLongPress(false);
1375+
#endif
13731376
goto wait_key;
13741377
}
13751378
}
@@ -1546,6 +1549,9 @@ bool inputPassphraseOnDevice(char *passphrase) {
15461549
symbol_index = 0;
15471550
index = symbol_table[symbol_index];
15481551
}
1552+
#if !EMULATOR
1553+
enableLongPress(true);
1554+
#endif
15491555
goto input_passphrase;
15501556
default:
15511557
break;
@@ -1589,6 +1595,7 @@ bool protectPassphraseOnDevice(char *passphrase) {
15891595
if (msg_tiny_id == MessageType_MessageType_ButtonAck) {
15901596
msg_tiny_id = 0xFFFF;
15911597
result = true;
1598+
timeout_flag = false;
15921599
break;
15931600
}
15941601

legacy/firmware/protob/messages-cosmos.options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ CosmosGetAddress.hrp max_size:32
44
CosmosAddress.address max_size:65
55

66
CosmosSignTx.address_n max_count:8
7-
CosmosSignTx.raw_tx max_size:2048
7+
CosmosSignTx.raw_tx max_size:4096
88

99
CosmosSignedTx.signature max_size:64

legacy/firmware/recovery.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ static void select_complete_word(char *title, int start, int len) {
688688
uint8_t key = KEY_NULL;
689689
int index = 0;
690690

691+
#if !EMULATOR
692+
enableLongPress(false);
693+
#endif
694+
691695
refresh_menu:
692696
layoutItemsSelectAdapterWords(
693697
&bmp_bottom_middle_arrow_up, &bmp_bottom_middle_arrow_down,
@@ -720,6 +724,10 @@ static void select_complete_word(char *title, int start, int len) {
720724
default:
721725
break;
722726
}
727+
728+
#if !EMULATOR
729+
enableLongPress(true);
730+
#endif
723731
}
724732

725733
static uint8_t recovery_check_words(void) {

0 commit comments

Comments
 (0)