From 6f9e3c24259e63b9631f95307dc787dec2394cb1 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Wed, 1 Mar 2023 12:16:20 +0100 Subject: [PATCH] Allow XL for PrusaLink and PrusaConnect --- src/slic3r/GUI/PhysicalPrinterDialog.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/PhysicalPrinterDialog.cpp b/src/slic3r/GUI/PhysicalPrinterDialog.cpp index f67af6dfc3..25f8bea62e 100644 --- a/src/slic3r/GUI/PhysicalPrinterDialog.cpp +++ b/src/slic3r/GUI/PhysicalPrinterDialog.cpp @@ -547,18 +547,19 @@ void PhysicalPrinterDialog::update_host_type(bool printer_change) } link, connect; // allowed models are: all MINI, all MK3 and newer, MK2.5 and MK2.5S auto model_supports_prusalink = [](const std::string& model) { - return model.size() >= 3 && + return model.size() >= 2 && (( boost::starts_with(model, "MK") && model[2] > '2' && model[2] <= '9') || boost::starts_with(model, "MINI") || boost::starts_with(model, "MK2.5") - //|| boost::starts_with(model, "MK2.5S") + || boost::starts_with(model, "XL") ); }; // allowed models are: all MK3/S and MK2.5/S auto model_supports_prusaconnect = [](const std::string& model) { - return model.size() >= 3 && - (boost::starts_with(model, "MK3") + return model.size() >= 2 && + ((boost::starts_with(model, "MK") && model[2] > '2' && model[2] <= '9') || boost::starts_with(model, "MK2.5") + || boost::starts_with(model, "XL") ); };