chiark
/
gitweb
/
~ianmdlvl
/
cura.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7605bfa
)
Skip empty lines for #1010
author
daid
<daid303@gmail.com>
Wed, 26 Nov 2014 12:36:51 +0000
(13:36 +0100)
committer
Youness Alaoui
<kakaroto@kakaroto.homelinux.net>
Thu, 15 Jan 2015 18:51:44 +0000
(13:51 -0500)
Cura/avr_isp/intelHex.py
patch
|
blob
|
history
diff --git
a/Cura/avr_isp/intelHex.py
b/Cura/avr_isp/intelHex.py
index fb78bb0ac587132597a784929b962b8cdc4a8047..21fb46394cf1f18edee5f6df25ef61b31f389b99 100644
(file)
--- a/
Cura/avr_isp/intelHex.py
+++ b/
Cura/avr_isp/intelHex.py
@@
-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)