Closed greg-norris closed 1 year ago
We may need @taylorza to look into this issue. This is outside my expertise. Is the timeout coming from the browser's web serial implementation or the Brainpad? It has to do with pgmstream
not succeeding a 2nd time. Same code works the first time, but fails the 2nd time after the code is modified.
wrote pgmstream()
write is sleeping
write is reading until &
Reading... Done? false
-> &
queued: &
Reading... Done? false
-> !
Reading... Done? false
!error timeout
->
-> >
queued: !error timeout
queued: >
Error: !error timeout
read until found (2) ['&', '!error timeout']
When running this code once, I get a Timeout if I make a change and try to record again.
x=0 @loop print(x) x=x+1 wait(1000) goto loop
If I use println() instead of print() I don't get the timeout error when I make a change and try and re-record.
x=0 @loop println(x) x=x+1 wait(1000) goto loop
Also notice the > appears in the Output window when I STOP the program.
Then when I make a small change and hit record I see this:
If I reconnect the BrainPad Pulse and hit LIST the only thing that appears in the coding window is