From 190fde8a457ed9a13567658d72b45430ccb1286a Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 10 Jul 2025 12:34:27 +0200 Subject: [PATCH] change serial setup timeout delay --- src/meshcore/meshcore.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshcore/meshcore.py b/src/meshcore/meshcore.py index 555f7f5..ad37b48 100644 --- a/src/meshcore/meshcore.py +++ b/src/meshcore/meshcore.py @@ -70,7 +70,7 @@ class MeshCore: auto_reconnect: bool = False, max_reconnect_attempts: int = 3) -> 'MeshCore': """Create and connect a MeshCore instance using serial connection""" connection = SerialConnection(port, baudrate) - await asyncio.sleep(0.1) # Time for transport to establish + await asyncio.sleep(0.2) # Time for transport to establish mc = cls(connection, debug=debug, default_timeout=default_timeout, auto_reconnect=auto_reconnect, max_reconnect_attempts=max_reconnect_attempts) @@ -327,4 +327,4 @@ class MeshCore: if not self._contacts: await self.commands.get_contacts() return True - return False \ No newline at end of file + return False