[Armadeus-commitlog] armadeus branch, master, updated. armadeus-4.1-206-g5281b04
Brought to you by:
sszy
|
From: jorasse <jo...@us...> - 2012-03-27 16:30:56
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via 5281b043967c26bdae84b4fa57b93a12f1f7fc57 (commit)
from 87d15fcd0d6ea619340539f1d91e880f09308840 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5281b043967c26bdae84b4fa57b93a12f1f7fc57
Author: Eric Jarrige <eri...@ar...>
Date: Tue Mar 27 18:41:57 2012 +0200
[TOOLS] improve reliability of uboot recover tools
-----------------------------------------------------------------------
Summary of changes:
software/uboot_recover/apf27_recover.py | 4 ++--
software/uboot_recover/apf51_recover.py | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/software/uboot_recover/apf27_recover.py b/software/uboot_recover/apf27_recover.py
index 4663ec5..30d4645 100644
--- a/software/uboot_recover/apf27_recover.py
+++ b/software/uboot_recover/apf27_recover.py
@@ -202,11 +202,11 @@ class apf27Bootloader:
b = 16-n # ensure always 4 bytes
#tr = unpack('B'*n,data)
self.port.write(data)
-
count = count + 16
if (count % 1024) == 0:
self.__displayProgress("%06d bytes" % count)
data = f.read(16)
+ time.sleep(0.001)
self.__displayProgress("%d bytes transfered" % count)
print ""
f.close()
@@ -336,9 +336,9 @@ class UBoot:
return self.__getOutput()
def waitForPrompt(self):
- #time.sleep(1)
self.serial.write("\003")
while not self.serial.inWaiting():
+ time.sleep(0.001)
self.serial.write("\003")
return self.__getOutput()
diff --git a/software/uboot_recover/apf51_recover.py b/software/uboot_recover/apf51_recover.py
index bdcdc29..634d1b5 100644
--- a/software/uboot_recover/apf51_recover.py
+++ b/software/uboot_recover/apf51_recover.py
@@ -432,6 +432,7 @@ class UBoot:
def waitForPrompt(self):
self.serial.write("\003")
while not self.serial.inWaiting():
+ time.sleep(0.001)
self.serial.write("\003")
return self.__getOutput()
hooks/post-receive
--
armadeus
|