serial input


Author Message
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6433
Posted: 07:13am 11 Jun 2025      

  Volhout said  
So why the DO LOOP. If you have a 256 buffer, why not use input$(255,#1)
Volhout

With a 256 byte buffer you need two reads. Normally I would have a larger buffer hence the do:loop

Once flushed, I use whatever size read is needed for the incoming data with plenty of room to synchronize the stream.