bumps timeout up

This commit is contained in:
serversdwn
2026-03-30 23:46:34 -04:00
parent f8f590b19b
commit 8e985154a7
2 changed files with 5 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ class MiniMateClient:
self, self,
port: str, port: str,
baud: int = 38_400, baud: int = 38_400,
timeout: float = 5.0, timeout: float = 15.0,
transport: Optional[BaseTransport] = None, transport: Optional[BaseTransport] = None,
) -> None: ) -> None:
self.port = port self.port = port

View File

@@ -80,9 +80,10 @@ DATA_LENGTHS: dict[int, int] = {
# NOT handled here — requires specialised read logic. # NOT handled here — requires specialised read logic.
} }
# Default timeout values (seconds) # Default timeout values (seconds).
DEFAULT_RECV_TIMEOUT = 3.0 # MiniMate Plus is a slow device — keep these generous.
POLL_RECV_TIMEOUT = 2.0 DEFAULT_RECV_TIMEOUT = 10.0
POLL_RECV_TIMEOUT = 10.0
# ── Exception ───────────────────────────────────────────────────────────────── # ── Exception ─────────────────────────────────────────────────────────────────