From a4a815f6f3fdb0183a2263ef39622b779cb16946 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Tue, 23 Oct 2012 01:25:42 +0200 Subject: [PATCH] added delay to gdispControl() to fix some timing issues --- src/gdisp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gdisp.c b/src/gdisp.c index 364df1cd..a63b3db5 100644 --- a/src/gdisp.c +++ b/src/gdisp.c @@ -712,6 +712,7 @@ void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t chMtxLock(&gdispMutex); GDISP_LLD(control)(what, value); chMtxUnlock(); + chThdSleepMilliseconds(100); } #elif GDISP_NEED_CONTROL && GDISP_NEED_ASYNC void gdispControl(unsigned what, void *value) { @@ -719,6 +720,7 @@ void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t p->control.what = what; p->control.value = value; chMBPost(&gdispMailbox, (msg_t)p, TIME_INFINITE); + chThdSleepMilliseconds(100); } #endif