Skip to content

Commit bd4fa4b

Browse files
authored
fix(legacy): fix OK-26522 & OK-26508 (#542)
1 parent e5200f9 commit bd4fa4b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

legacy/firmware/layout2.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -245,13 +245,13 @@ void getBleDevInformation(void) {
245245
ble_request_info(BLE_CMD_BATTERY);
246246
delay_ms(5);
247247
}
248-
if (!ble_build_id_state()) {
249-
ble_request_info(BLE_CMD_BUILD_ID);
250-
delay_ms(5);
251-
}
252-
if (!ble_hash_state()) {
253-
ble_request_info(BLE_CMD_HASH);
254-
delay_ms(5);
248+
if (ble_ver_state()) { // > 1.5.1
249+
if (strcmp(ble_get_ver(), "1.5.1") > 0) {
250+
if (!ble_build_id_state()) {
251+
ble_request_info(BLE_CMD_BUILD_ID);
252+
delay_ms(5);
253+
}
254+
}
255255
}
256256
}
257257
void refreshNfcIcon(bool force_flag) {

legacy/firmware/polkadot/parser_impl_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ uint16_t _getAddressType() { return __address_type; }
361361

362362
uint16_t _detectAddressType(const parser_context_t *c) {
363363
(void)c;
364+
memset(__polkadot_ticker, 0, sizeof(__polkadot_ticker));
364365
if (!strncmp(polkadot_network, "polkadot", 8)) {
365366
__polkadot_dicimal = COIN_AMOUNT_DECIMAL_PLACES;
366367
memcpy(__polkadot_ticker, COIN_TICKER, 4);

0 commit comments

Comments
 (0)