Set different timestamp behaviour for X300 and B200

This commit is contained in:
Ismael Gomez 2020-09-07 11:16:38 +02:00 committed by Xavier Arteaga
parent 08a0d6bc0a
commit c4080e35cc
1 changed files with 6 additions and 1 deletions

View File

@ -1342,7 +1342,12 @@ int rf_uhd_send_timed_multi(void* h,
// Set start of burst. Time spec only for the first packet in the burst
md.start_of_burst = is_start_of_burst;
md.has_time_spec = is_start_of_burst and has_time_spec;
// X300 devices work better if Timespec is sent at the start of the burst only
if (!handler->devname.compare(DEVNAME_X300)) {
md.has_time_spec = is_start_of_burst and has_time_spec;
} else {
md.has_time_spec = is_start_of_burst or has_time_spec;
}
// middle packets are never end of burst, last one as defined
if (nsamples - n > (int)tx_samples) {