fix loading prusa conf

This commit is contained in:
remi durand 2021-05-01 11:58:14 +02:00
parent b6891a036d
commit 8b7aa58cf8

View File

@ -5268,6 +5268,14 @@ void PrintConfigDef::handle_legacy(t_config_option_key &opt_key, std::string &va
opt_key = ""; opt_key = "";
return; return;
} }
//prusa
if ("gcode_flavor" == opt_key) {
if ("reprap" == value)
value = "sprinter";
else if ("reprapfirmware" == value)
value = "reprap";
}
} }
void PrintConfigDef::to_prusa(t_config_option_key& opt_key, std::string& value, const DynamicConfig& all_conf) { void PrintConfigDef::to_prusa(t_config_option_key& opt_key, std::string& value, const DynamicConfig& all_conf) {