dda_queue.c: restart XON/XOFF only if the queue is at least half drained.
This commit is contained in:
parent
f98772ff25
commit
2fac65d172
|
|
@ -108,8 +108,9 @@ void next_move() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef XONXOFF
|
#ifdef XONXOFF
|
||||||
// restart transmission
|
// restart transmission if the move buffer is only half full
|
||||||
xon();
|
if (((mb_tail - mb_head - 1) & (MOVEBUFFER_SIZE - 1)) > (MOVEBUFFER_SIZE / 2))
|
||||||
|
xon();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue