From 29e03bd873977a498dbce79616bfb3fe4b7a0698 Mon Sep 17 00:00:00 2001 From: cepetr Date: Tue, 5 Nov 2024 14:10:16 +0100 Subject: [PATCH] fix(core): fix haptic custom effect in loaders [no changelog] --- core/embed/trezorhal/stm32f4/syscall_dispatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/embed/trezorhal/stm32f4/syscall_dispatch.c b/core/embed/trezorhal/stm32f4/syscall_dispatch.c index 9f61e41716..ef238388b1 100644 --- a/core/embed/trezorhal/stm32f4/syscall_dispatch.c +++ b/core/embed/trezorhal/stm32f4/syscall_dispatch.c @@ -419,8 +419,8 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args, } break; case SYSCALL_HAPTIC_PLAY_CUSTOM: { - int8_t amplitude_pct = (int8_t)args[1]; - uint16_t duration_ms = (uint16_t)args[2]; + int8_t amplitude_pct = (int8_t)args[0]; + uint16_t duration_ms = (uint16_t)args[1]; args[0] = haptic_play_custom(amplitude_pct, duration_ms); } break; #endif