From 33408a4dfc1c12bd9a4798884ff776beceaff488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Lefran=C3=A7ois?= Date: Fri, 30 Jan 2015 11:16:13 -0500 Subject: [PATCH] Update ultralcd.cpp Fix number of nozzle displayed in temperature menu. --- Marlin/ultralcd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/ultralcd.cpp b/Marlin/ultralcd.cpp index 8015f489a..3335b9aa9 100644 --- a/Marlin/ultralcd.cpp +++ b/Marlin/ultralcd.cpp @@ -811,13 +811,13 @@ static void lcd_control_temperature_menu() #if TEMP_SENSOR_0 != 0 MENU_ITEM_EDIT(int3, MSG_NOZZLE, &target_temperature[0], 0, HEATER_0_MAXTEMP - 15); #endif -#if TEMP_SENSOR_1 != 0 +#if TEMP_SENSOR_1 != 0 && EXTRUDERS > 1 MENU_ITEM_EDIT(int3, MSG_NOZZLE " 2", &target_temperature[1], 0, HEATER_1_MAXTEMP - 15); #endif -#if TEMP_SENSOR_2 != 0 +#if TEMP_SENSOR_2 != 0 && EXTRUDERS > 2 MENU_ITEM_EDIT(int3, MSG_NOZZLE " 3", &target_temperature[2], 0, HEATER_2_MAXTEMP - 15); #endif -#if TEMP_SENSOR_3 != 0 +#if TEMP_SENSOR_3 != 0 && EXTRUDERS > 3 MENU_ITEM_EDIT(int3, MSG_NOZZLE " 4", &target_temperature[3], 0, HEATER_3_MAXTEMP - 15); #endif #if TEMP_SENSOR_BED != 0