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)