diff --git a/core/embed/sys/pvd/stm32/pvd.c b/core/embed/sys/pvd/stm32/pvd.c index 6d9f2b4d1b..c66a6cc0b3 100644 --- a/core/embed/sys/pvd/stm32/pvd.c +++ b/core/embed/sys/pvd/stm32/pvd.c @@ -24,6 +24,10 @@ #include #include +#ifdef USE_BACKLIGHT +#include +#endif + #if defined(KERNEL_MODE) && defined(USE_PVD) void pvd_init(void) { @@ -52,10 +56,11 @@ void PVD_PVM_IRQHandler(void) { void PVD_IRQHandler(void) { #endif mpu_reconfig(MPU_MODE_DEFAULT); -#ifdef TPS61043_TIM - // Turn off display backlight - TPS61043_TIM->TPS61043_TIM_CCR = 0; + +#ifdef USE_BACKLIGHT + backlight_set(0); #endif + error_shutdown("PVD IRQ"); }