From a6db55dc5d2485343f416a9040cb78b75bbc19bb Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Tue, 10 Dec 2024 09:54:45 +0100 Subject: [PATCH] fixup! feat(core): display driver for T3W1 --- core/embed/io/display/ltdc_dsi/display_fb.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/core/embed/io/display/ltdc_dsi/display_fb.c b/core/embed/io/display/ltdc_dsi/display_fb.c index 63b490fc45..1a51d9c3d1 100644 --- a/core/embed/io/display/ltdc_dsi/display_fb.c +++ b/core/embed/io/display/ltdc_dsi/display_fb.c @@ -154,24 +154,8 @@ void display_refresh(void) { return; } - if (is_mode_exception()) { - // Disable scheduling of any new background copying - HAL_NVIC_DisableIRQ(LTDC_IRQn); - HAL_NVIC_DisableIRQ(LTDC_ER_IRQn); - - display_set_fb((uint32_t)get_fb_ptr(fb_idx)); - - // Reset the buffer queue so we can eventually continue - // safely in thread mode - fb_queue_reset(&drv->queue); - - // Enable normal processing again - HAL_NVIC_EnableIRQ(LTDC_IRQn); - HAL_NVIC_EnableIRQ(LTDC_ER_IRQn); - } else { - // Mark the buffer ready to switch to - fb_queue_set_ready_for_transfer(&drv->queue); - } + // Mark the buffer ready to switch to + fb_queue_set_ready_for_transfer(&drv->queue); } void display_ensure_refreshed(void) {