Skip to content

Commit eedc968

Browse files
joaquim-srsxavierarteaga
authored andcommitted
uhd: fix timespec update after transmission
1 parent 4c32359 commit eedc968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/radio/uhd/radio_uhd_tx_stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void radio_uhd_tx_stream::transmit(const baseband_gateway_buffer_reader&
254254
return;
255255
}
256256

257-
power_ramping_metadata.time_spec += txd_samples * srate_hz;
257+
power_ramping_metadata.time_spec += uhd::time_spec_t::from_ticks(txd_samples, srate_hz);
258258
txd_padding_sps_total += txd_samples;
259259

260260
} while (txd_padding_sps_total < nof_padding_samples);
@@ -295,7 +295,7 @@ void radio_uhd_tx_stream::transmit(const baseband_gateway_buffer_reader&
295295
}
296296

297297
// Increment timespec.
298-
uhd_metadata.time_spec += txd_samples * srate_hz;
298+
uhd_metadata.time_spec += uhd::time_spec_t::from_ticks(txd_samples, srate_hz);
299299

300300
// Increment the total amount of received samples.
301301
txd_samples_total += txd_samples;

0 commit comments

Comments
 (0)