FIX: CLI: check enable_prime_tower also when checking wipe tower

JIRA: MAK-4101
Change-Id: Ida2f4ef2e95a1ae39cbfd73f996ff063e51dd59e
This commit is contained in:
lane.wei 2024-08-27 18:20:49 +08:00 committed by Lane.Wei
parent 99092f2ede
commit 172ec282dc
1 changed files with 10 additions and 0 deletions

View File

@ -3321,6 +3321,16 @@ int CLI::run(int argc, char **argv)
return;
}
bool wipe_tower_enabled = false;
if (print_config.has("enable_prime_tower")) {
wipe_tower_enabled = print_config.option<ConfigOptionBool>("enable_prime_tower")->value;
}
if (!wipe_tower_enabled) {
plate_obj_size_info.has_wipe_tower = false;
BOOST_LOG_TRIVIAL(info) << boost::format("enable_prime_tower set to false");
return;
}
int valid_count = plate->printable_instance_size();
if (valid_count <= 0){
plate_obj_size_info.has_wipe_tower = false;