python: Fix setting start_time having no effect

In the Python MultiUSRP class, has_time_spec and stream_now were not
being properly set, basically making send_waveform() unable to use
timed streams.
This commit is contained in:
zolveuran 2023-03-14 20:46:02 +01:00 committed by Aki Tomita
parent 4883105c8c
commit f3815f3384

View File

@ -183,6 +183,7 @@ class MultiUSRP(lib.usrp.multi_usrp):
metadata = lib.types.tx_metadata()
if start_time is not None:
metadata.time_spec = start_time
metadata.has_time_spec = True
while send_samps < max_samps:
real_samps = min(proto_len, max_samps-send_samps)
if real_samps < proto_len: