embed: don't sync in display_refresh when using GC9307

pull/25/head
Pavol Rusnak 6 years ago
parent e7a74ccfee
commit f1dc43f951
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save