printer firmware version is major and minor in case of makerbot

CURA-11138
This commit is contained in:
saumya.jain 2023-10-27 11:41:06 +02:00
parent 37e236405a
commit 3dd4ef7dda
2 changed files with 12 additions and 2 deletions

View file

@ -106,6 +106,10 @@ class MeshFormatHandler:
if "application/x-ufp" not in machine_file_formats and Version(firmware_version) >= Version("4.4"):
machine_file_formats = ["application/x-ufp"] + machine_file_formats
# Exception for makerbot firmware version >=2.500: makerbot is supported
elif "application/x-makerbot" not in machine_file_formats:
machine_file_formats = ["application/x-makerbot"] + machine_file_formats
# Take the intersection between file_formats and machine_file_formats.
format_by_mimetype = {f["mime_type"]: f for f in file_formats}