Serial port question

Just starting out? Need help? Post your questions and find answers here.
wh1sp3r
User
User
Posts: 11
Joined: Mon Apr 17, 2006 9:08 pm

Serial port question

Post by wh1sp3r »

Is there any way, how to flush(or delete) input buffer?
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

you discard it by reading out the buffer :

Code: Select all

While AvailableSerialPortInput(#SerialPort)
  ReadSerialPortData(#SerialPort, @temp.l, 4)
Wend
Post Reply