1
0
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:
Pavol Rusnak 2018-08-02 19:01:28 +02:00
parent e7a74ccfee
commit f1dc43f951
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)