From f1dc43f951893d2544e9b8d4e5b7c39259aab29e Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 2 Aug 2018 19:01:28 +0200 Subject: [PATCH] embed: don't sync in display_refresh when using GC9307 --- embed/extmod/modtrezorui/display-stm32.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embed/extmod/modtrezorui/display-stm32.h b/embed/extmod/modtrezorui/display-stm32.h index 13b22ab1f..9869d63b4 100644 --- a/embed/extmod/modtrezorui/display-stm32.h +++ b/embed/extmod/modtrezorui/display-stm32.h @@ -332,9 +332,11 @@ void display_init(void) void display_refresh(void) { +#if ! DISPLAY_GC9307 // synchronize with the panel synchronization signal in order to avoid visual tearing effects while (GPIO_PIN_RESET == HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_12)) { } while (GPIO_PIN_SET == HAL_GPIO_ReadPin(GPIOD, GPIO_PIN_12)) { } +#endif } void display_save(const char *prefix)