Skip to content

Commit bf30ea8

Browse files
committed
Clear buffer on timeout
1 parent 3512da4 commit bf30ea8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/Portenta_Camera/extras/CameraRawBytesVisualizer/CameraRawBytesVisualizer.pde

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ void draw() {
4848
// Time out after 1.5 seconds and ask for new data
4949
if(millis() - lastUpdate > 1500) {
5050
println("Connection timed out.");
51+
myPort.clear();
5152
myPort.write(1);
5253
}
5354

0 commit comments

Comments
 (0)