ArduinoAm29F010

Change of upload.py

29:ad17e0dbe227
upload.py
     1.1 --- a/upload.py	Sun Aug 09 19:08:15 2015 +0200
     1.2 +++ b/upload.py	Sun Aug 09 19:51:29 2015 +0200
     1.3 @@ -84,13 +84,13 @@
     1.4          addr = (sector << 14) | i
     1.5  
     1.6          if not verify_only:
     1.7 -            writeToPort("P%04x%02x\n" % (addr, value))
     1.8 +            writeToPort("P%05x%02x\n" % (addr, value))
     1.9              resp = readFromPort()
    1.10              if resp != "P":
    1.11                  print >>sys.stderr, "Program of location %04x failed: %s" % (addr, resp)
    1.12                  return False
    1.13          else:
    1.14 -            writeToPort("R%04x\n" % addr)
    1.15 +            writeToPort("R%05x\n" % addr)
    1.16              resp = readFromPort()
    1.17              if resp != "%02X" % value and resp != "%X" % value:
    1.18                  print >>sys.stderr, "Verify of location %04x failed: %s" % (addr, resp)