aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-23 01:25:42 +0200
committerJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-23 01:25:42 +0200
commita4a815f6f3fdb0183a2263ef39622b779cb16946 (patch)
tree23625573ae12ebf966d2f771aa93455be2869e12
parentbe15a908856032cdbd54a7dba2a96edb4e97307c (diff)
downloaduGFX-a4a815f6f3fdb0183a2263ef39622b779cb16946.tar.gz
uGFX-a4a815f6f3fdb0183a2263ef39622b779cb16946.tar.bz2
uGFX-a4a815f6f3fdb0183a2263ef39622b779cb16946.zip
added delay to gdispControl() to fix some timing issues
-rw-r--r--src/gdisp.c2
1 files changed, 2 insertions, 0 deletions
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