mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-16 11:28:14 +00:00
fix(core): fix haptic custom effect in loaders
[no changelog]
This commit is contained in:
parent
3897bc8d72
commit
29e03bd873
@ -419,8 +419,8 @@ __attribute((no_stack_protector)) void syscall_handler(uint32_t *args,
|
|||||||
} break;
|
} break;
|
||||||
|
|
||||||
case SYSCALL_HAPTIC_PLAY_CUSTOM: {
|
case SYSCALL_HAPTIC_PLAY_CUSTOM: {
|
||||||
int8_t amplitude_pct = (int8_t)args[1];
|
int8_t amplitude_pct = (int8_t)args[0];
|
||||||
uint16_t duration_ms = (uint16_t)args[2];
|
uint16_t duration_ms = (uint16_t)args[1];
|
||||||
args[0] = haptic_play_custom(amplitude_pct, duration_ms);
|
args[0] = haptic_play_custom(amplitude_pct, duration_ms);
|
||||||
} break;
|
} break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user