Skip to content

Commit

Permalink
fix(legacy): fix OK-26522 & OK-26508 (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxyx authored Mar 27, 2024
1 parent e5200f9 commit bd4fa4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions legacy/firmware/layout2.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,13 +245,13 @@ void getBleDevInformation(void) {
ble_request_info(BLE_CMD_BATTERY);
delay_ms(5);
}
if (!ble_build_id_state()) {
ble_request_info(BLE_CMD_BUILD_ID);
delay_ms(5);
}
if (!ble_hash_state()) {
ble_request_info(BLE_CMD_HASH);
delay_ms(5);
if (ble_ver_state()) { // > 1.5.1
if (strcmp(ble_get_ver(), "1.5.1") > 0) {
if (!ble_build_id_state()) {
ble_request_info(BLE_CMD_BUILD_ID);
delay_ms(5);
}
}
}
}
void refreshNfcIcon(bool force_flag) {
Expand Down
1 change: 1 addition & 0 deletions legacy/firmware/polkadot/parser_impl_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@ uint16_t _getAddressType() { return __address_type; }

uint16_t _detectAddressType(const parser_context_t *c) {
(void)c;
memset(__polkadot_ticker, 0, sizeof(__polkadot_ticker));
if (!strncmp(polkadot_network, "polkadot", 8)) {
__polkadot_dicimal = COIN_AMOUNT_DECIMAL_PLACES;
memcpy(__polkadot_ticker, COIN_TICKER, 4);
Expand Down

0 comments on commit bd4fa4b

Please sign in to comment.