Fixing key not found error
This commit is contained in:
parent
8df55012d7
commit
8733292dc3
@ -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
|
||||
|
@ -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]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user