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
@josuah, @avolmat-st@pillo79 and all -
This commit is giving a couple different options on what should
be done when we detect a USB failure. The previous one, when
the callback for DMA error happens, I stopped the HDMA DMA and
in some case restarted it there.
But I found when I started doing the Snapshot earlier, I found it
would hang more often when it was done there, so I did it when
the call came back to get a buffer in the dequeue... So the new
option is to detect the error and set a state saying we
are in an error condition and when we return and are in
the dequeue function, if we see that that we errored out
it process it then. In the case of not being in snapshot
mode there are two place. Again when:
```
*vbuf = k_fifo_get(&data->fifo_out, timeout);
```
returns in this condition. So we do it there.
Or if we call dequeue and the error happened while we were not
in dequeue, like we have two buffers. And we already dequeue
one and maybe we re drawing it on the display and the
camera is still active reading in the next frame.
Once I know which way you would all prefer, will then
remove the others and squash the commits.
Signed-off-by: Kurt Eckhardt <[email protected]>
0 commit comments