exclude_area and host_type

This commit is contained in:
sunsets
2024-03-01 08:54:32 +08:00
parent ee616bbbb6
commit 1fc08d237c
11 changed files with 90 additions and 39 deletions

View File

@@ -46,6 +46,7 @@ PrintHost* PrintHost::get_print_host(DynamicPrintConfig *config)
const auto opt = config->option<ConfigOptionEnum<PrintHostType>>("host_type");
const auto host_type = opt != nullptr ? opt->value : htOctoPrint;
//B55
switch (host_type) {
case htOctoPrint: return new OctoPrint(config);
case htDuet: return new Duet(config);
@@ -55,7 +56,8 @@ PrintHost* PrintHost::get_print_host(DynamicPrintConfig *config)
case htQIDILink: return new QIDILink(config);
case htQIDIConnect: return new QIDIConnect(config);
case htMKS: return new MKS(config);
case htMoonraker: return new Moonraker(config);
case htMoonraker: return new Moonraker(config,true);
case htMoonraker2: return new Moonraker(config,false);
default: return nullptr;
}
} else {