mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-12-12 11:38:06 +00:00
fix(sensor_data): avoid tagging samples to far in the past
This commit is contained in:
committed by
Carles Fernandez
parent
a847240e59
commit
3452a4388b
@@ -115,7 +115,7 @@ int SensorDataSource::work(int noutput_items,
|
|||||||
pmt::pmt_t value = SensorIdentifier::convert_to_internal_type(sensor.identifier, sensor.type, raw_value);
|
pmt::pmt_t value = SensorIdentifier::convert_to_internal_type(sensor.identifier, sensor.type, raw_value);
|
||||||
data_tag = pmt::dict_add(data_tag, sensor.tag_key, value);
|
data_tag = pmt::dict_add(data_tag, sensor.tag_key, value);
|
||||||
}
|
}
|
||||||
add_item_tag(0, sample_stamp, TAG_KEY, data_tag);
|
add_item_tag(0, nitems_written(0), TAG_KEY, data_tag);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user