// uartFlush discards all buffered input (Rx) data.
uartFlush discards all buffered input (Rx) data.
// uartFlush discards all buffered input ( Rx ) data .
func (d *dhw) uartFlush() {
	acm := &descCDCACM[d.cc.config-1]
	tail := acm.rxTail
	for tail != acm.rxHead {
		tail += 1
		if tail > descCDCACMRDCount {
			tail = 0
		}
		i := acm.rxQueue[tail]
		acm.rxFree -= acm.rxCount[i] - acm.rxIndex[i]
		d.uartReceive(uint8(i))
		acm.rxTail = tail
	}
}
func ( d * dhw ) uartFlush ( ) { acm := & descCDCACM [ d . cc . config - 1 ] tail := acm . rxTail for tail != acm . rxHead { tail += 1 if tail > descCDCACMRDCount { tail = 0 } i := acm . rxQueue [ tail ] acm . rxFree -= acm . rxCount [ i ] - acm . rxIndex [ i ] d . uartReceive ( uint8 ( i ) ) acm . rxTail = tail } }
uartFlush discards all buffered input (Rx) data.
uartFlush discards all buffered input ( Rx ) data .