MCPcopy Create free account
hub / github.com/FullControlXYZ/fullcontrol / initialize

Method initialize

fullcontrol/gcode/controls.py:21–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 include_date: Optional[bool] = True
20
21 def initialize(self):
22 if self.printer_name is None:
23 self.printer_name = 'generic'
24 print("warning: printer is not set - defaulting to 'generic', which does not initialize the printer with proper start gcode\n - use fc.transform(..., controls=fc.GcodeControls(printer_name='generic') to disable this message or set it to a real printer name\n")
25

Callers 1

gcodeFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected