Skip to content

Commit efa1939

Browse files
committed
Update stax target
1 parent c977258 commit efa1939

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

ledger_secure_sdk_sys/sdk_stax.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define HAVE_SPRINTF
12
#define HAVE_LOCAL_APDU_BUFFER
23
#define IO_HID_EP_LENGTH 64
34
#define USB_SEGMENT_SIZE 64

ledger_secure_sdk_sys/src/c/src.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "checks.h"
1212
#ifdef HAVE_BLE
1313
#include "ledger_ble.h"
14+
bolos_ux_asynch_callback_t G_io_asynch_ux_callback;
1415
#endif
1516

1617
extern void sample_main();
@@ -302,7 +303,7 @@ int c_main(void) {
302303
io_seproxyhal_spi_send(c, 4);
303304
#endif
304305

305-
#ifdef HAVE_BLE
306+
#ifdef HAVE_BLE
306307
unsigned int plane = G_io_app.plane_mode;
307308
#endif
308309

@@ -323,15 +324,16 @@ int c_main(void) {
323324
#ifdef HAVE_CCID
324325
io_usb_ccid_set_card_inserted(1);
325326
#endif
326-
327+
327328
#ifdef HAVE_BLE
329+
memset(&G_io_asynch_ux_callback, 0, sizeof(G_io_asynch_ux_callback));
328330
LEDGER_BLE_init();
329331
#endif
330332

331333
#if !defined(HAVE_BOLOS) && defined(HAVE_PENDING_REVIEW_SCREEN)
332334
check_audited_app();
333335
#endif // !defined(HAVE_BOLOS) && defined(HAVE_PENDING_REVIEW_SCREEN)
334-
336+
335337
heap_init();
336338
sample_main();
337339
}

0 commit comments

Comments
 (0)