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

Function printerSdState

src/astroprint/api/printer.py:374–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

372
373@api.route("/printer/sd", methods=["GET"])
374def printerSdState():
375 if not settings().getBoolean(["feature", "sdSupport"]):
376 return make_response("SD support is disabled", 404)
377
378 return jsonify(ready=printerManager().isSdReady())
379
380
381##~~ Commands

Callers

nothing calls this directly

Calls 4

settingsFunction · 0.90
printerManagerFunction · 0.90
getBooleanMethod · 0.80
isSdReadyMethod · 0.45

Tested by

no test coverage detected