Commit eac35f07 authored by Laurent THOMAS's avatar Laurent THOMAS Committed by Robert Schmidt

Usrp constant and slow derive timestamp

Co-authored-by: default avatarThomas Schlichter <thomas.schlichter@iis.fraunhofer.de>
parent 10e07bc6
......@@ -222,7 +222,7 @@ static void writerProcessWaitingQueue(openair0_device *device)
if (wroteSamples != nsamps)
LOG_E(HW, "Failed to write to rf\n");
}
ctx->nextTS += nsamps;
ctx->nextTS = timestamp + nsamps;
pthread_mutex_lock(&ctx->mutex_store);
}
}
......@@ -253,7 +253,7 @@ int openair0_write_reorder(openair0_device *device, openair0_timestamp timestamp
wroteSamples = device->trx_write_func(device, timestamp, txp, nsamps, nbAnt, flags);
else
wroteSamples = nsamps;
ctx->nextTS += nsamps;
ctx->nextTS = timestamp + nsamps;
} else {
writerEnqueue(ctx, timestamp, txp, nsamps, nbAnt, flags);
......
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