Add source_id to the packet

This commit is contained in:
2020-05-04 12:35:14 +02:00
parent 5408be95e1
commit 145cb82bbf
+4 -3
View File
@@ -78,9 +78,11 @@ int main (int argc, char *argv[]) {
}
ModuleFrame* metadata = queue.get_metadata_buffer(slot_id);
char* data = queue.get_data_buffer(slot_id);
auto pulse_id = metadata->pulse_id;
metadata->module_id = source_id;
char* data = queue.get_data_buffer(slot_id);
auto pulse_id = metadata->pulse_id;
writer.set_pulse_id(pulse_id);
writer.write_data(data);
@@ -132,7 +134,6 @@ int main (int argc, char *argv[]) {
cout << " sf_buffer:n_missed_packets " << n_missed_packets;
cout << endl;
stats_counter = 0;
n_missed_packets = 0;
n_missed_frames = 0;