mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-27 01:48:17 +00:00
fix(core): fix enabling/disabling haptics before the driver is initialized
[no changelog]
This commit is contained in:
parent
a0a0c93d0d
commit
904327cea5
@ -217,6 +217,10 @@ void haptic_deinit(void) {
|
||||
void haptic_set_enabled(bool enabled) {
|
||||
haptic_driver_t *driver = &g_haptic_driver;
|
||||
|
||||
if (!driver->initialized) {
|
||||
return;
|
||||
}
|
||||
|
||||
driver->enabled = enabled;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user