MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / loadFilament

Method loadFilament

src/astroprint/plugin/services/printer.py:439–451  ·  view source on GitHub ↗
(self,data,callback)

Source from the content-addressed store, hash-verified

437 sendResponse({'success': 'no_error'})
438
439 def loadFilament(self,data,callback):
440 pm = printerManager()
441
442 if not pm.isOperational():
443 callback("No Printer connected",True)
444
445 executedSuccess = pm.executeRoutine('loadFilament')
446
447 if not executedSuccess:
448 callback("LoadFilament routine executing failed",True)
449 else:
450 #callback("LoadFilament executed successfuly",True)
451 callback({'success': 'no_error'})
452
453 def unLoadFilament(self,data,callback):
454 pm = printerManager()

Callers

nothing calls this directly

Calls 4

printerManagerFunction · 0.90
executeRoutineMethod · 0.80
callbackFunction · 0.50
isOperationalMethod · 0.45

Tested by

no test coverage detected