Skip to content

Commit 2d34c12

Browse files
authored
Merge pull request #1017 from LedgerHQ/y333/fix_bolos_ux_params_t
lock_delay shall be always available in the union
2 parents e9f7909 + cd1c8c6 commit 2d34c12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/os_ux.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ typedef struct bolos_ux_params_s {
2424
bolos_ux_t ux_id;
2525
// length of parameters in the u union to be copied during the syscall.
2626
unsigned int len;
27-
28-
#if defined(HAVE_BLE) || defined(HAVE_KEYBOARD_UX)
2927
union {
28+
#if defined(HAVE_BLE) || defined(HAVE_KEYBOARD_UX)
3029
// Structure for the lib ux.
3130
#if defined(HAVE_KEYBOARD_UX)
3231
struct {
@@ -65,11 +64,11 @@ typedef struct bolos_ux_params_s {
6564
} pairing_ok;
6665
} pairing_status; // sent in BOLOS_UX_ASYNCHMODAL_PAIRING_STATUS message
6766
#endif // HAVE_BLE
67+
#endif // defined(HAVE_BLE) || defined(HAVE_KEYBOARD_UX)
6868
struct { // for BOLOS_UX_DELAY_LOCK command
6969
uint32_t delay_ms;
7070
} lock_delay;
7171
} u;
72-
#endif // defined(HAVE_BLE) || defined(HAVE_KEYBOARD_UX)
7372
} bolos_ux_params_t;
7473

7574
#endif // !defined(HAVE_BOLOS)

0 commit comments

Comments
 (0)