Commit bd628e4c authored by Federico Vaga's avatar Federico Vaga

lib: put the metadata in the debug field

According the latest version the MSBs in frac do not contain anything
meaningful. So, let's make the debug field meaningful by putting the
metadata.
Signed-off-by: Evangelia Gousiou's avatarEvangelia Gousiou <evangelia.gousiou@cern.ch>
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent c187b3de
......@@ -700,7 +700,7 @@ static void fmctdc_ts_convert(struct fmctdc_time *t, struct ft_hw_timestamp *o)
t->seconds = o->seconds;
t->coarse = o->coarse;
t->frac = o->frac & 0xfff;
t->debug = o->frac >> 12;
t->debug = o->metadata;
t->seq_id = FT_HW_TS_META_SEQ(o->metadata);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment