This commit is contained in:
Max 2021-09-21 12:42:32 +01:00
parent 3817d9338d
commit 6cd563a1ab

View File

@ -21,7 +21,7 @@ def load_from_file():
with open('previous_mag_cal', 'r') as offsets: with open('previous_mag_cal', 'r') as offsets:
raw = offsets.readline() raw = offsets.readline()
clean = raw.split('\n')[0].split(';') clean = raw.split('\n')[0].split(';')
offsets = CompassOffsets(clean[0], clean[1], clean[2], clean[3], clean[4], clean[5]) offsets = CompassOffsets(float(clean[0]), float(clean[1]), float(clean[2]), float(clean[3]), float(clean[4]), float(clean[5]))
return offsets return offsets
return False return False