simoninns / DomesdayDuplicator

High-speed LaserDisc RF sampler
GNU General Public License v3.0
138 stars 21 forks source link

Enable test data checking in test mode #114

Closed atsampson closed 2 years ago

atsampson commented 2 years ago

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.

atsampson commented 2 years ago

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?