X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=frprog.py;h=da4f399dcdbdc179a4d63b50f984e77bd0962768;hb=98d52dcf49cff3e0d77ea2f0a5ef16abd5dc1f7f;hp=b7371c1cfa226c6d2b14877d936a7fa32a3438fe;hpb=c380c7da56e97c4430481fe7ccecb98330268726;p=pyfrprog.git diff --git a/frprog.py b/frprog.py index b7371c1..da4f399 100755 --- a/frprog.py +++ b/frprog.py @@ -15,7 +15,6 @@ last_checksum = 0 def sendByte(byte): time.sleep(0.001) # just to get sure, wait 1ms tty.write(chr(byte)) - tty.flush() def sendWord(word): sendByte(word & 0xFF) @@ -194,6 +193,7 @@ for seq in flashseqs: continue print "RAMing", len(seq.data), "bytes at address", hex(addr) cmdWRITE(addr, len(seq.data), seq.data) + tty.flush() cmdCALL(0x30000); sys.exit(0)