From 5073075e39a1e35ab7408e3d325bf00a8e0a2230 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Fri, 26 Feb 2021 17:09:16 +0100 Subject: screen will not refresh if nobody claims touch event --- fw/fe310/eos/eve/screen/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fw/fe310/eos/eve/screen') diff --git a/fw/fe310/eos/eve/screen/screen.c b/fw/fe310/eos/eve/screen/screen.c index fa4a0aa..1099515 100644 --- a/fw/fe310/eos/eve/screen/screen.c +++ b/fw/fe310/eos/eve/screen/screen.c @@ -91,7 +91,7 @@ void eve_screen_draw(EVEScreen *screen) { void eve_screen_handle_touch(void *s, uint8_t tag0, int touch_idx) { EVEScreen *screen = s; EVEWindow *win; - int h; + int h = 0; eve_touch_clear_opt(); @@ -106,5 +106,5 @@ void eve_screen_handle_touch(void *s, uint8_t tag0, int touch_idx) { } } - eve_screen_draw(screen); + if (h) eve_screen_draw(screen); } -- cgit v1.2.3