mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
embed: don't sync in display_refresh when using GC9307
This commit is contained in:
parent
e7a74ccfee
commit
f1dc43f951
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user