From 4e92c615ce3e574c7cbde922b1b1de9e75ea76c2 Mon Sep 17 00:00:00 2001 From: mjellits Date: Sun, 12 Jan 2025 16:14:02 +0100 Subject: [PATCH] add main handling --- apps/bap_unicast_client.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apps/bap_unicast_client.py b/apps/bap_unicast_client.py index 876018b..ed71451 100644 --- a/apps/bap_unicast_client.py +++ b/apps/bap_unicast_client.py @@ -1,5 +1,5 @@ """ -BAP Unicast Client Application +BAP Unicast Client Class Created on 26. Dec. 2024 @@ -480,4 +480,9 @@ async def run_unicast(port,wav,target_name,sample_rate,verbose) -> None: print("all done") def main(): - asyncio.run(unicast()) + unicast() + +# ----------------------------------------------------------------------------- +if __name__ == "__main__": + main() # pylint: disable=no-value-for-parameter +