Fixing key not found error

This commit is contained in:
Jordan Ruthe committed 2020-11-16 00:17:51 -05:00
1 parent 8df55012d7
commit 8733292dc3
2 files changed
+4

No files matched your search

+1
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
+3
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]