Update main.cpp

Skip invalid images in buffer
This commit is contained in:
Andrej Babič
2023-06-01 15:12:00 +02:00
committed by GitHub
parent ad59736153
commit 3306067034
+4
View File
@@ -53,6 +53,10 @@ int main (int argc, char *argv[]) {
// TODO: Memory copy here. Optimize this one out.
ram_buff.read_frame(
pulse_id, module_id, file_buff->meta, file_buff->data);
if (pulse_id != file_buff->meta.pulse_id) {
continue;
}
writer.write(pulse_id, file_buff);