serial flush - part-cw/lambdanative GitHub Wiki

(serial-flush dev)

serial-flush flushes a RS232 device communication port

Parameter Description
dev Serial device obtained from rs232-try

Example

Example 1: Behaviour when an error in a communication protocol is encountered

(begin (rs232-flush dev) (rs232-cache-clear dev) 0))