added delay to gdispControl() to fix some timing issues
This commit is contained in:
parent
be15a90885
commit
a4a815f6f3
1 changed files with 2 additions and 0 deletions
|
@ -712,6 +712,7 @@ void gdispDrawArc(coord_t x, coord_t y, coord_t radius, uint16_t start, uint16_t
|
||||||
chMtxLock(&gdispMutex);
|
chMtxLock(&gdispMutex);
|
||||||
GDISP_LLD(control)(what, value);
|
GDISP_LLD(control)(what, value);
|
||||||
chMtxUnlock();
|
chMtxUnlock();
|
||||||
|
chThdSleepMilliseconds(100);
|
||||||
}
|
}
|
||||||
#elif GDISP_NEED_CONTROL && GDISP_NEED_ASYNC
|
#elif GDISP_NEED_CONTROL && GDISP_NEED_ASYNC
|
||||||
void gdispControl(unsigned what, void *value) {
|
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.what = what;
|
||||||
p->control.value = value;
|
p->control.value = value;
|
||||||
chMBPost(&gdispMailbox, (msg_t)p, TIME_INFINITE);
|
chMBPost(&gdispMailbox, (msg_t)p, TIME_INFINITE);
|
||||||
|
chThdSleepMilliseconds(100);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue