Initialize analyzer earlier in printcore.py
parent
8c24401ddb
commit
6fcb5b38b0
|
@ -42,6 +42,7 @@ class printcore():
|
||||||
"""
|
"""
|
||||||
self.baud = None
|
self.baud = None
|
||||||
self.port = None
|
self.port = None
|
||||||
|
self.analyzer = GCodeAnalyzer()
|
||||||
self.printer = None #Serial instance connected to the printer, None when disconnected
|
self.printer = None #Serial instance connected to the printer, None when disconnected
|
||||||
self.clear = 0 #clear to send, enabled after responses
|
self.clear = 0 #clear to send, enabled after responses
|
||||||
self.online = False #The printer has responded to the initial command and is active
|
self.online = False #The printer has responded to the initial command and is active
|
||||||
|
@ -70,7 +71,6 @@ class printcore():
|
||||||
self.print_thread = None
|
self.print_thread = None
|
||||||
if port is not None and baud is not None:
|
if port is not None and baud is not None:
|
||||||
self.connect(port, baud)
|
self.connect(port, baud)
|
||||||
self.analyzer = GCodeAnalyzer()
|
|
||||||
self.xy_feedrate = None
|
self.xy_feedrate = None
|
||||||
self.z_feedrate = None
|
self.z_feedrate = None
|
||||||
self.pronterface = None
|
self.pronterface = None
|
||||||
|
|
Loading…
Reference in New Issue