PICO high speed serial problem


Author Message
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4350
Posted: 12:42pm 19 Jun 2024      

An oddity of the code is that if LOC(#5) is >32 you've kind of misaligned things, whereas if you INPUT 32 the extra would stay buffered till the next loop.

There may well be a timing issue in that the PRINT may take longer than it takes for 32 chars to arrive - maybe?  Or longer than it takes 70?

I'd change the 70 to 32.

I'd also want to think hard (or measure) how long the PRINT can take.

Perhaps check that LOC(#5) is never >70!!

John
Edited 2024-06-19 22:43 by JohnS