Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Cura/avr_isp/intelHex.py')
-rw-r--r--Cura/avr_isp/intelHex.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Cura/avr_isp/intelHex.py b/Cura/avr_isp/intelHex.py
index fb78bb0ac5..21fb46394c 100644
--- 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)