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

Function isResolutionSupported

src/astroprint/api/camera.py:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35@api.route("/camera/is-resolution-supported", methods=["GET"])
36@restricted_access
37def isResolutionSupported():
38 cm = cameraManager()
39 size = request.values['size']
40
41 return jsonify({"isResolutionSupported": cm.isResolutionSupported(size)})
42
43
44@api.route("/camera/connected", methods=["GET"])

Callers

nothing calls this directly

Calls 2

cameraManagerFunction · 0.90
isResolutionSupportedMethod · 0.45

Tested by

no test coverage detected