Commit 3be7107
authored
Fix a synchronization bug
Fixes a synchronization bug. Return if there's no timeout OR if there's no sync byte received.
The previous version needed both to be true at the same time to return without sending a
frame, which meant that a frame was sent if there was a timeout even if no sync byte had been
received. That, in turn, caused random problems for the Processing sketch on the other end.1 parent f10a895 commit 3be7107
File tree
1 file changed
+5
-2
lines changed- libraries/Camera/examples/CameraCaptureRawBytes
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
0 commit comments