Fixing key not found error

This commit is contained in:
Jordan Ruthe 2020-11-16 00:17:51 -05:00
parent 8df55012d7
commit 8733292dc3
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ class FineTune(ScreenPanel):
bs_deltas = ["0.01","0.05"]
percent_delta = 1
percent_deltas = ['1','5','10','25']
fan = 100
extrusion = 0
speed = 0

View File

@ -40,6 +40,9 @@ class Printer:
keys = ['fan','gcode_move','idle_timeout','pause_resume','print_stats','toolhead','virtual_sdcard']
for x in keys:
if x in data:
if x not in self.data:
self.data[x] = {}
for y in data[x]:
self.data[x][y] = data[x][y]