Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bambulabs_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def start_print(self, filename: str,
use_ams: bool = True,
ams_mapping: list[int] = [0],
skip_objects: list[int] | None = None,
flow_calibration: bool = True,
) -> bool:
"""
Start printing a file.
Expand All @@ -360,6 +361,8 @@ def start_print(self, filename: str,
by default [0].
skip_objects (list[int] | None, optional): List of gcode objects to
skip. Defaults to None.
flow_calibration : bool, optional
Whether to use the automatic flow calibrationn, by default True.

Returns
-------
Expand All @@ -370,7 +373,8 @@ def start_print(self, filename: str,
plate_number,
use_ams,
ams_mapping,
skip_objects)
skip_objects,
flow_calibration)

def stop_print(self) -> bool:
"""
Expand Down
3 changes: 2 additions & 1 deletion bambulabs_api/mqtt_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def start_print_3mf(self, filename: str,
use_ams: bool = True,
ams_mapping: list[int] = [0],
skip_objects: list[int] | None = None,
flow_calibration: bool = True,
) -> bool:
"""
Start the print
Expand Down Expand Up @@ -501,7 +502,7 @@ def start_print_3mf(self, filename: str,
"file": filename,
"bed_leveling": True,
"bed_type": "textured_plate",
"flow_cali": True,
"flow_cali": bool(flow_calibration),
"vibration_cali": True,
"url": f"ftp:///{filename}",
"layer_inspect": False,
Expand Down