Skip to content

Commit 2b79ab3

Browse files
committed
set delay using struct field (no binding names)
1 parent b480a3c commit 2b79ab3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ledger_device_sdk/src/uxapp.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ impl UxEvent {
4444
Self::DelayLock => {
4545
#[cfg(any(target_os = "stax", target_os = "flex", feature = "nano_nbgl"))]
4646
{
47-
G_ux_params.u = bolos_ux_params_s__bindgen_ty_1 {
48-
lock_delay: bolos_ux_params_s__bindgen_ty_1__bindgen_ty_3 {
49-
delay_ms: val.unwrap_or(10000),
50-
},
51-
};
47+
G_ux_params.u.lock_delay.delay_ms = val.unwrap_or(10000);
5248
}
49+
5350
Self::DelayLock as u8
5451
}
5552
Self::LastID => panic!("Unknown UX Event"),

0 commit comments

Comments
 (0)