FIX: mistake use of extruder id

Should use filament id instead of extruder id

jira:NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: I669092da6902158ad5f89d4814c78eabdfb2e7c7
This commit is contained in:
xun.zhang 2024-08-13 09:25:23 +08:00 committed by lane.wei
parent 9ee85bef34
commit 18894bd803
1 changed files with 2 additions and 2 deletions

View File

@ -5597,8 +5597,8 @@ std::string GCode::set_extruder(unsigned int filament_id, double print_z, bool b
// Set the temperature if the wipe tower didn't (not needed for non-single extruder MM)
if (m_config.single_extruder_multi_material && !m_config.enable_prime_tower) {
int temp = (m_layer_index <= 0 ? m_config.nozzle_temperature_initial_layer.get_at(extruder_id) :
m_config.nozzle_temperature.get_at(extruder_id));
int temp = (m_layer_index <= 0 ? m_config.nozzle_temperature_initial_layer.get_at(filament_id) :
m_config.nozzle_temperature.get_at(filament_id));
gcode += m_writer.set_temperature(temp, false);
}