1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 19:08:07 +00:00

fix(core): fix haptic custom effect in loaders

[no changelog]
This commit is contained in:
cepetr 2024-11-05 14:10:16 +01:00 committed by Martin Milata
parent 3897bc8d72
commit 29e03bd873

View File

@ -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