chiark / gitweb /
Skip empty lines for #1010
authordaid <daid303@gmail.com>
Wed, 26 Nov 2014 12:36:51 +0000 (13:36 +0100)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Thu, 15 Jan 2015 18:51:44 +0000 (13:51 -0500)
Cura/avr_isp/intelHex.py

index fb78bb0ac587132597a784929b962b8cdc4a8047..21fb46394cf1f18edee5f6df25ef61b31f389b99 100644 (file)
@@ -15,6 +15,8 @@ def readHex(filename):
        f = io.open(filename, "r")
        for line in f:
                line = line.strip()
+               if len(line) < 1:
+                       continue
                if line[0] != ':':
                        raise Exception("Hex file has a line not starting with ':'")
                recLen = int(line[1:3], 16)