// serialFlush discards all buffered input (Rx) data.
serialFlush discards all buffered input (Rx) data.
// serialFlush discards all buffered input ( Rx ) data .
func (d *dhw) serialFlush() {
	hid := &descHID[d.cc.config-1]
	tail := hid.rxSerialTail
	for tail != hid.rxSerialHead {
		tail += 1
		if tail > descHIDSerialRDCount {
			tail = 0
		}
		i := hid.rxSerialQueue[tail]
		d.serialReceive(uint8(i))
		hid.rxSerialTail = tail
	}
}
func ( d * dhw ) serialFlush ( ) { hid := & descHID [ d . cc . config - 1 ] tail := hid . rxSerialTail for tail != hid . rxSerialHead { tail += 1 if tail > descHIDSerialRDCount { tail = 0 } i := hid . rxSerialQueue [ tail ] d . serialReceive ( uint8 ( i ) ) hid . rxSerialTail = tail } }
serialFlush discards all buffered input (Rx) data.
serialFlush discards all buffered input ( Rx ) data .