FRONTPANEL: Minimuze the latency for register content queries by coalescing all response data into a single response packet.
This commit is contained in:
parent
02295fa215
commit
f5cd5439f5
1 changed files with 7 additions and 5 deletions
|
@ -639,11 +639,13 @@ if (sim_log) {
|
||||||
cbuf[sizeof(cbuf)-1] = '\0';
|
cbuf[sizeof(cbuf)-1] = '\0';
|
||||||
while (fgets (cbuf, sizeof(cbuf)-1, sim_log))
|
while (fgets (cbuf, sizeof(cbuf)-1, sim_log))
|
||||||
tmxr_linemsgf (lp, "%s", cbuf);
|
tmxr_linemsgf (lp, "%s", cbuf);
|
||||||
do {
|
if (!tmxr_input_pending_ln (lp)) {
|
||||||
unwritten = tmxr_send_buffered_data (lp);
|
do {
|
||||||
if (unwritten == lp->txbsz)
|
unwritten = tmxr_send_buffered_data (lp);
|
||||||
sim_os_ms_sleep (100);
|
if (unwritten == lp->txbsz)
|
||||||
} while (unwritten == lp->txbsz);
|
sim_os_ms_sleep (100);
|
||||||
|
} while (unwritten == lp->txbsz);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue