From a608e29911bd34d176d046bf99b59333b283990f Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 6 Dec 2024 11:34:57 -0800 Subject: [PATCH] Update mesh_bot.py --- mesh_bot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 0844c64..954ab6a 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -1115,8 +1115,10 @@ async def main(): hamlibTask = asyncio.create_task(handleSignalWatcher()) await asyncio.gather(meshRxTask, watchdogTask) - await asyncio.gather(hamlibTask) - await asyncio.gather(fileMonTask) + if radio_detection_enabled: + await asyncio.gather(hamlibTask) + if file_monitor_enabled: + await asyncio.gather(fileMonTask) await asyncio.sleep(0.01)