From 85faaede279da601022146d122b756b5a5c2e73e Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 28 Mar 2012 22:38:59 +0200 Subject: digital/asserv/tools, digital/mimot/tools: longer timeout to write eeprom --- digital/mimot/tools/mimot/mimot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'digital/mimot/tools/mimot') diff --git a/digital/mimot/tools/mimot/mimot.py b/digital/mimot/tools/mimot/mimot.py index 98101eb8..70462fdc 100644 --- a/digital/mimot/tools/mimot/mimot.py +++ b/digital/mimot/tools/mimot/mimot.py @@ -191,8 +191,10 @@ class Proto: def write_eeprom (self): """Request an EEPROM write.""" self.proto.send ('p', 'cB', 'E', 1) - time.sleep (1) + old_timeout = self.proto.timeout + self.proto.timeout = 5 self.wait (lambda: True) + self.proto.timeout = old_timeout def __handle_stats (self, stat, *args): """Record received stats.""" -- cgit v1.2.3