Commit f43c88c0 authored by Federico Vaga's avatar Federico Vaga

lib: it is not necesary anymore to read timestamp to flush

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 12f07ab0
......@@ -678,9 +678,8 @@ int fmctdc_reference_get(struct fmctdc_board *userb, unsigned int ch_target)
int fmctdc_flush(struct fmctdc_board *userb, unsigned int channel)
{
struct __fmctdc_board *b = (void *)(userb);
struct fmctdc_time t[10];
char path[64];
int i, en, err;
int en, err;
if (channel >= FMCTDC_NUM_CHANNELS) {
errno = EINVAL;
......@@ -695,12 +694,6 @@ int fmctdc_flush(struct fmctdc_board *userb, unsigned int channel)
if (err)
return err;
/* FIXME when TDC driver will have its zio-trigger this is not
* necessary anymore */
do {
i = fmctdc_read(userb, channel, t, 10, 0);
} while (i > 0);
/* Flush ZIO buffer */
snprintf(path, sizeof(path), "ft-ch%d/chan0/buffer/flush", channel + 1);
err = fmctdc_sysfs_set(b, path, &channel);
......
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