Skip to content

Commit e0c5b6e

Browse files
committed
Fix setting start_time having no effect due to not setting has_time_spec and stream_now when using Python bindings.
1 parent d18647d commit e0c5b6e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

host/python/uhd/usrp/multi_usrp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ def _start_stream(streamer):
8181
if not stream_cmd.stream_now:
8282
if start_time is not None:
8383
stream_cmd.time_spec = start_time
84+
stream_cmd.stream_now = False
8485
else:
8586
stream_cmd.time_spec = lib.types.time_spec(
8687
super(MultiUSRP, self).get_time_now().get_real_secs() + 0.05)
@@ -183,6 +184,7 @@ def _config_streamer(streamer):
183184
metadata = lib.types.tx_metadata()
184185
if start_time is not None:
185186
metadata.time_spec = start_time
187+
metadata.has_time_spec = True
186188
while send_samps < max_samps:
187189
real_samps = min(proto_len, max_samps-send_samps)
188190
if real_samps < proto_len:

0 commit comments

Comments
 (0)