From f31caad22a252cee74409438b4592e5c5258ceaf Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Nov 2006 23:57:20 +0000 Subject: [PATCH] Raised default timeout from 100 to 1000ms as operations on storage card were occassionally timing out --- libprs500/communicate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libprs500/communicate.py b/libprs500/communicate.py index 2aa203986e..c40f46cef1 100755 --- a/libprs500/communicate.py +++ b/libprs500/communicate.py @@ -273,7 +273,7 @@ class PRS500Device(object): self.handle.releaseInterface() self.handle, self.device = None, None - def _send_command(self, command, response_type=Response, timeout=100): + def _send_command(self, command, response_type=Response, timeout=1000): """ Send L{command} to device and return its L{response}. @@ -289,7 +289,7 @@ class PRS500Device(object): if self._log_packets: _log_packet(response, "Response") return response - def _send_validated_command(self, command, cnumber=None, response_type=Response, timeout=100): + def _send_validated_command(self, command, cnumber=None, response_type=Response, timeout=1000): """ Wrapper around L{_send_command} that checks if the C{Response.rnumber == cnumber or command.number if cnumber==None}. Also check that C{Response.type == Command.type}.