Allow version 4 schematics (closes #1)

master
sfan5 2016-07-03 19:42:53 +02:00
parent d41b533008
commit 01956ac587
1 changed files with 2 additions and 2 deletions

View File

@ -157,8 +157,8 @@ else:
print("This file does not look like an MTS schematic..")
exit(1)
v = struct.unpack("!H", sch.read(2))[0]
if v != 3:
print("Wrong file version: got %d, expected %d" % (v, 3))
if v != 4:
print("Wrong file version: got %d, expected %d" % (v, 4))
exit(1)
width, height, depth = struct.unpack("!HHH", sch.read(6))
sch.seek(height, 1)