From e478dfc70fd3a6bab08c67c2a8663acb79f42cbb Mon Sep 17 00:00:00 2001 From: Ryan Summers Date: Mon, 9 Aug 2021 14:18:09 +0200 Subject: [PATCH] Fixing miniconf API after updates --- hitl/streaming.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hitl/streaming.py b/hitl/streaming.py index 1675409..6d884b6 100644 --- a/hitl/streaming.py +++ b/hitl/streaming.py @@ -131,8 +131,7 @@ def main(): # Configure the stream print(f'Configuring stream to target {".".join(map(str, local_ip))}:{args.port}') print('') - assert (await interface.command('stream_target', - {'ip': local_ip, 'port': args.port}))['code'] == 0 + await interface.command('stream_target', {'ip': local_ip, 'port': args.port}) # Verify frame reception print('Testing stream reception') @@ -146,8 +145,7 @@ def main(): # Disable the stream. print('Closing stream') print('') - assert (await interface.command('stream_target', - {'ip': [0, 0, 0, 0], 'port': 0}))['code'] == 0 + await interface.command('stream_target', {'ip': [0, 0, 0, 0], 'port': 0}) stream.clear() print('Verifying no further data is received')