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,7 +108,8 @@ void next_move() {
|
|||
}
|
||||
|
||||
#ifdef XONXOFF
|
||||
// restart transmission
|
||||
// restart transmission if the move buffer is only half full
|
||||
if (((mb_tail - mb_head - 1) & (MOVEBUFFER_SIZE - 1)) > (MOVEBUFFER_SIZE / 2))
|
||||
xon();
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue