The code to do this was present in UsbCapture already, but wasn't being enabled, and didn't check that the sequence continued correctly from one buffer to the next.
This should have no performance impact for regular captures, and minimal impact for test captures - it's just a single pass through the array so it should be cheap compared to actually writing the data to disk.
After a bit more thought - with this PR applied, there's no way to do a test mode capture without stopping on errors. So should there be an option somewhere to enable/disable verification?
The code to do this was present in UsbCapture already, but wasn't being enabled, and didn't check that the sequence continued correctly from one buffer to the next.
This should have no performance impact for regular captures, and minimal impact for test captures - it's just a single pass through the array so it should be cheap compared to actually writing the data to disk.