You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Another interesting behavior happens when the Reader replaced by Scanner (example before)
Lets assume to call the next code in the infinitive loop, and the serial port gets infinitive stream of bytes. Then the line 8 will never be executed because the scanner returns empty lines. But if break the app in the line 1 or 2 and then continue execution, then the line 8 will print a valid data as minimum once.
Reading bytes from the serial unexpected terminated with the error
Sample code
The sample code below
Other info
Platform: Windows 10
Golang: go version go1.21.3 windows/amd64
Serial interface: USB to Serial
The text was updated successfully, but these errors were encountered: