Skip to content

Commit 2c9c7b1

Browse files
committed
fix(app): Simulator build
1 parent 455121f commit 2c9c7b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/card_operations/card_fetch_decrypt_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ card_error_type_e card_fetch_decrypt_data(const uint8_t *wallet_id,
143143
#if USE_SIMULATOR == 0
144144
card_error_type_e status =
145145
card_get_wallet_list(card_data, &configuration, &response);
146-
#endif
147146
// If the tapped card is not paired, it is a terminal case in the flow
148147
if (true == response.card_info.pairing_error) {
149148
return CARD_OPERATION_DEFAULT_INVALID;
@@ -172,6 +171,7 @@ card_error_type_e card_fetch_decrypt_data(const uint8_t *wallet_id,
172171
delay_scr_init(ui_text_wallet_doesnt_exists_on_this_card, DELAY_TIME);
173172
return CARD_OPERATION_DEFAULT_INVALID;
174173
}
174+
#endif
175175

176176
if (CARD_OPERATION_SUCCESS == card_data.error_type) {
177177
for (int i = 0; i < msg_count; i++) {

src/card_operations/card_fetch_encrypt_data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ card_error_type_e card_fetch_encrypt_data(const uint8_t *wallet_id,
172172
#if USE_SIMULATOR == 0
173173
card_error_type_e status =
174174
card_get_wallet_list(card_data, &configuration, &response);
175-
#endif
176175
// If the tapped card is not paired, it is a terminal case in the flow
177176
if (true == response.card_info.pairing_error) {
178177
return CARD_OPERATION_DEFAULT_INVALID;
@@ -201,6 +200,7 @@ card_error_type_e card_fetch_encrypt_data(const uint8_t *wallet_id,
201200
delay_scr_init(ui_text_wallet_doesnt_exists_on_this_card, DELAY_TIME);
202201
return CARD_OPERATION_DEFAULT_INVALID;
203202
}
203+
#endif
204204

205205
if (CARD_OPERATION_SUCCESS == card_data.error_type) {
206206
for (int i = 0; i < msg_count; i++) {

0 commit comments

Comments
 (0)