|
@@ -919,31 +919,37 @@ void kill_screen(const char* lcd_msg) {
|
919
|
919
|
* Watch temperature callbacks
|
920
|
920
|
*/
|
921
|
921
|
#if WATCH_HOTENDS
|
922
|
|
- #if TEMP_SENSOR_0 != 0
|
|
922
|
+ #if HAS_TEMP_HOTEND
|
923
|
923
|
void watch_temp_callback_E0() { thermalManager.start_watching_heater(0); }
|
|
924
|
+ #if HOTENDS > 1
|
|
925
|
+ void watch_temp_callback_E1() { thermalManager.start_watching_heater(1); }
|
|
926
|
+ #if HOTENDS > 2
|
|
927
|
+ void watch_temp_callback_E2() { thermalManager.start_watching_heater(2); }
|
|
928
|
+ #if HOTENDS > 3
|
|
929
|
+ void watch_temp_callback_E3() { thermalManager.start_watching_heater(3); }
|
|
930
|
+ #if HOTENDS > 4
|
|
931
|
+ void watch_temp_callback_E4() { thermalManager.start_watching_heater(4); }
|
|
932
|
+ #endif // HOTENDS > 4
|
|
933
|
+ #endif // HOTENDS > 3
|
|
934
|
+ #endif // HOTENDS > 2
|
|
935
|
+ #endif // HOTENDS > 1
|
924
|
936
|
#endif
|
925
|
|
- #if HOTENDS > 1 && TEMP_SENSOR_1 != 0
|
926
|
|
- void watch_temp_callback_E1() { thermalManager.start_watching_heater(1); }
|
927
|
|
- #endif // HOTENDS > 1
|
928
|
|
- #if HOTENDS > 2 && TEMP_SENSOR_2 != 0
|
929
|
|
- void watch_temp_callback_E2() { thermalManager.start_watching_heater(2); }
|
930
|
|
- #endif // HOTENDS > 2
|
931
|
|
- #if HOTENDS > 3 && TEMP_SENSOR_3 != 0
|
932
|
|
- void watch_temp_callback_E3() { thermalManager.start_watching_heater(3); }
|
933
|
|
- #endif // HOTENDS > 3
|
934
|
937
|
#else
|
935
|
|
- #if TEMP_SENSOR_0 != 0
|
|
938
|
+ #if HAS_TEMP_HOTEND
|
936
|
939
|
void watch_temp_callback_E0() {}
|
|
940
|
+ #if HOTENDS > 1
|
|
941
|
+ void watch_temp_callback_E1() {}
|
|
942
|
+ #if HOTENDS > 2
|
|
943
|
+ void watch_temp_callback_E2() {}
|
|
944
|
+ #if HOTENDS > 3
|
|
945
|
+ void watch_temp_callback_E3() {}
|
|
946
|
+ #if HOTENDS > 4
|
|
947
|
+ void watch_temp_callback_E4() {}
|
|
948
|
+ #endif // HOTENDS > 4
|
|
949
|
+ #endif // HOTENDS > 3
|
|
950
|
+ #endif // HOTENDS > 2
|
|
951
|
+ #endif // HOTENDS > 1
|
937
|
952
|
#endif
|
938
|
|
- #if HOTENDS > 1 && TEMP_SENSOR_1 != 0
|
939
|
|
- void watch_temp_callback_E1() {}
|
940
|
|
- #endif // HOTENDS > 1
|
941
|
|
- #if HOTENDS > 2 && TEMP_SENSOR_2 != 0
|
942
|
|
- void watch_temp_callback_E2() {}
|
943
|
|
- #endif // HOTENDS > 2
|
944
|
|
- #if HOTENDS > 3 && TEMP_SENSOR_3 != 0
|
945
|
|
- void watch_temp_callback_E3() {}
|
946
|
|
- #endif // HOTENDS > 3
|
947
|
953
|
#endif
|
948
|
954
|
|
949
|
955
|
#if WATCH_THE_BED
|
|
@@ -990,24 +996,17 @@ void kill_screen(const char* lcd_msg) {
|
990
|
996
|
// Nozzle [1-4]:
|
991
|
997
|
//
|
992
|
998
|
#if HOTENDS == 1
|
993
|
|
- #if TEMP_SENSOR_0 != 0
|
994
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
995
|
|
- #endif
|
|
999
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
996
|
1000
|
#else //HOTENDS > 1
|
997
|
|
- #if TEMP_SENSOR_0 != 0
|
998
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N1, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
999
|
|
- #endif
|
1000
|
|
- #if TEMP_SENSOR_1 != 0
|
1001
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N2, &thermalManager.target_temperature[1], 0, HEATER_1_MAXTEMP - 15, watch_temp_callback_E1);
|
1002
|
|
- #endif
|
|
1001
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N1, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
|
1002
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N2, &thermalManager.target_temperature[1], 0, HEATER_1_MAXTEMP - 15, watch_temp_callback_E1);
|
1003
|
1003
|
#if HOTENDS > 2
|
1004
|
|
- #if TEMP_SENSOR_2 != 0
|
1005
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N3, &thermalManager.target_temperature[2], 0, HEATER_2_MAXTEMP - 15, watch_temp_callback_E2);
|
1006
|
|
- #endif
|
|
1004
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N3, &thermalManager.target_temperature[2], 0, HEATER_2_MAXTEMP - 15, watch_temp_callback_E2);
|
1007
|
1005
|
#if HOTENDS > 3
|
1008
|
|
- #if TEMP_SENSOR_3 != 0
|
1009
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N4, &thermalManager.target_temperature[3], 0, HEATER_3_MAXTEMP - 15, watch_temp_callback_E3);
|
1010
|
|
- #endif
|
|
1006
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N4, &thermalManager.target_temperature[3], 0, HEATER_3_MAXTEMP - 15, watch_temp_callback_E3);
|
|
1007
|
+ #if HOTENDS > 4
|
|
1008
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N5, &thermalManager.target_temperature[4], 0, HEATER_4_MAXTEMP - 15, watch_temp_callback_E4);
|
|
1009
|
+ #endif // HOTENDS > 4
|
1011
|
1010
|
#endif // HOTENDS > 3
|
1012
|
1011
|
#endif // HOTENDS > 2
|
1013
|
1012
|
#endif // HOTENDS > 1
|
|
@@ -1041,10 +1040,7 @@ void kill_screen(const char* lcd_msg) {
|
1041
|
1040
|
|
1042
|
1041
|
//
|
1043
|
1042
|
// Flow:
|
1044
|
|
- // Flow 1:
|
1045
|
|
- // Flow 2:
|
1046
|
|
- // Flow 3:
|
1047
|
|
- // Flow 4:
|
|
1043
|
+ // Flow [1-5]:
|
1048
|
1044
|
//
|
1049
|
1045
|
#if EXTRUDERS == 1
|
1050
|
1046
|
MENU_ITEM_EDIT(int3, MSG_FLOW, &flow_percentage[0], 10, 999);
|
|
@@ -1056,6 +1052,9 @@ void kill_screen(const char* lcd_msg) {
|
1056
|
1052
|
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N3, &flow_percentage[2], 10, 999);
|
1057
|
1053
|
#if EXTRUDERS > 3
|
1058
|
1054
|
MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N4, &flow_percentage[3], 10, 999);
|
|
1055
|
+ #if EXTRUDERS > 4
|
|
1056
|
+ MENU_ITEM_EDIT(int3, MSG_FLOW MSG_N5, &flow_percentage[4], 10, 999);
|
|
1057
|
+ #endif //EXTRUDERS > 4
|
1059
|
1058
|
#endif //EXTRUDERS > 3
|
1060
|
1059
|
#endif //EXTRUDERS > 2
|
1061
|
1060
|
#endif //EXTRUDERS > 1
|
|
@@ -1109,7 +1108,7 @@ void kill_screen(const char* lcd_msg) {
|
1109
|
1108
|
}
|
1110
|
1109
|
#endif
|
1111
|
1110
|
|
1112
|
|
- constexpr int heater_maxtemp[HOTENDS] = ARRAY_BY_HOTENDS(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP);
|
|
1111
|
+ constexpr int heater_maxtemp[HOTENDS] = ARRAY_BY_HOTENDS(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP, HEATER_4_MAXTEMP);
|
1113
|
1112
|
|
1114
|
1113
|
/**
|
1115
|
1114
|
*
|
|
@@ -1165,8 +1164,16 @@ void kill_screen(const char* lcd_msg) {
|
1165
|
1164
|
void lcd_preheat_m1_e3() { _lcd_preheat(3, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
1166
|
1165
|
void lcd_preheat_m2_e3() { _lcd_preheat(3, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
1167
|
1166
|
#endif
|
1168
|
|
- #endif
|
1169
|
|
- #endif
|
|
1167
|
+ #if HOTENDS > 4
|
|
1168
|
+ void lcd_preheat_m1_e4_only() { _lcd_preheat(4, lcd_preheat_hotend_temp[0], -1, lcd_preheat_fan_speed[0]); }
|
|
1169
|
+ void lcd_preheat_m2_e4_only() { _lcd_preheat(4, lcd_preheat_hotend_temp[1], -1, lcd_preheat_fan_speed[1]); }
|
|
1170
|
+ #if TEMP_SENSOR_BED != 0
|
|
1171
|
+ void lcd_preheat_m1_e4() { _lcd_preheat(4, lcd_preheat_hotend_temp[0], lcd_preheat_bed_temp[0], lcd_preheat_fan_speed[0]); }
|
|
1172
|
+ void lcd_preheat_m2_e4() { _lcd_preheat(4, lcd_preheat_hotend_temp[1], lcd_preheat_bed_temp[1], lcd_preheat_fan_speed[1]); }
|
|
1173
|
+ #endif
|
|
1174
|
+ #endif // HOTENDS > 4
|
|
1175
|
+ #endif // HOTENDS > 3
|
|
1176
|
+ #endif // HOTENDS > 2
|
1170
|
1177
|
|
1171
|
1178
|
void lcd_preheat_m1_all() {
|
1172
|
1179
|
#if HOTENDS > 1
|
|
@@ -1175,9 +1182,12 @@ void kill_screen(const char* lcd_msg) {
|
1175
|
1182
|
thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 2);
|
1176
|
1183
|
#if HOTENDS > 3
|
1177
|
1184
|
thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 3);
|
1178
|
|
- #endif
|
1179
|
|
- #endif
|
1180
|
|
- #endif
|
|
1185
|
+ #if HOTENDS > 4
|
|
1186
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[0], 4);
|
|
1187
|
+ #endif // HOTENDS > 4
|
|
1188
|
+ #endif // HOTENDS > 3
|
|
1189
|
+ #endif // HOTENDS > 2
|
|
1190
|
+ #endif // HOTENDS > 1
|
1181
|
1191
|
#if TEMP_SENSOR_BED != 0
|
1182
|
1192
|
lcd_preheat_m1_e0();
|
1183
|
1193
|
#else
|
|
@@ -1191,9 +1201,12 @@ void kill_screen(const char* lcd_msg) {
|
1191
|
1201
|
thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 2);
|
1192
|
1202
|
#if HOTENDS > 3
|
1193
|
1203
|
thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 3);
|
1194
|
|
- #endif
|
1195
|
|
- #endif
|
1196
|
|
- #endif
|
|
1204
|
+ #if HOTENDS > 4
|
|
1205
|
+ thermalManager.setTargetHotend(lcd_preheat_hotend_temp[1], 4);
|
|
1206
|
+ #endif // HOTENDS > 4
|
|
1207
|
+ #endif // HOTENDS > 3
|
|
1208
|
+ #endif // HOTENDS > 2
|
|
1209
|
+ #endif // HOTENDS > 1
|
1197
|
1210
|
#if TEMP_SENSOR_BED != 0
|
1198
|
1211
|
lcd_preheat_m2_e0();
|
1199
|
1212
|
#else
|
|
@@ -1244,10 +1257,18 @@ void kill_screen(const char* lcd_msg) {
|
1244
|
1257
|
#else
|
1245
|
1258
|
MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H4, lcd_preheat_m1_e3_only);
|
1246
|
1259
|
#endif
|
1247
|
|
- #endif
|
1248
|
|
- #endif
|
|
1260
|
+ #if HOTENDS > 4
|
|
1261
|
+ #if TEMP_SENSOR_BED != 0
|
|
1262
|
+ MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H5, lcd_preheat_m1_e4);
|
|
1263
|
+ MENU_ITEM(function, MSG_PREHEAT_1_END " " MSG_E5, lcd_preheat_m1_e4_only);
|
|
1264
|
+ #else
|
|
1265
|
+ MENU_ITEM(function, MSG_PREHEAT_1_N MSG_H5, lcd_preheat_m1_e4_only);
|
|
1266
|
+ #endif
|
|
1267
|
+ #endif // HOTENDS > 4
|
|
1268
|
+ #endif // HOTENDS > 3
|
|
1269
|
+ #endif // HOTENDS > 2
|
1249
|
1270
|
MENU_ITEM(function, MSG_PREHEAT_1_ALL, lcd_preheat_m1_all);
|
1250
|
|
- #endif
|
|
1271
|
+ #endif // HOTENDS > 1
|
1251
|
1272
|
#if TEMP_SENSOR_BED != 0
|
1252
|
1273
|
MENU_ITEM(function, MSG_PREHEAT_1_BEDONLY, lcd_preheat_m1_bedonly);
|
1253
|
1274
|
#endif
|
|
@@ -1288,10 +1309,18 @@ void kill_screen(const char* lcd_msg) {
|
1288
|
1309
|
#else
|
1289
|
1310
|
MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H4, lcd_preheat_m2_e3_only);
|
1290
|
1311
|
#endif
|
1291
|
|
- #endif
|
1292
|
|
- #endif
|
|
1312
|
+ #if HOTENDS > 4
|
|
1313
|
+ #if TEMP_SENSOR_BED != 0
|
|
1314
|
+ MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H5, lcd_preheat_m2_e4);
|
|
1315
|
+ MENU_ITEM(function, MSG_PREHEAT_2_END " " MSG_E5, lcd_preheat_m2_e4_only);
|
|
1316
|
+ #else
|
|
1317
|
+ MENU_ITEM(function, MSG_PREHEAT_2_N MSG_H5, lcd_preheat_m2_e4_only);
|
|
1318
|
+ #endif
|
|
1319
|
+ #endif // HOTENDS > 4
|
|
1320
|
+ #endif // HOTENDS > 3
|
|
1321
|
+ #endif // HOTENDS > 2
|
1293
|
1322
|
MENU_ITEM(function, MSG_PREHEAT_2_ALL, lcd_preheat_m2_all);
|
1294
|
|
- #endif
|
|
1323
|
+ #endif // HOTENDS > 1
|
1295
|
1324
|
#if TEMP_SENSOR_BED != 0
|
1296
|
1325
|
MENU_ITEM(function, MSG_PREHEAT_2_BEDONLY, lcd_preheat_m2_bedonly);
|
1297
|
1326
|
#endif
|
|
@@ -2104,16 +2133,16 @@ void kill_screen(const char* lcd_msg) {
|
2104
|
2133
|
PID_PARAM(Kd, e) = scalePID_d(raw_Kd);
|
2105
|
2134
|
thermalManager.updatePID();
|
2106
|
2135
|
}
|
2107
|
|
- #define _PIDTEMP_BASE_FUNCTIONS(eindex) \
|
2108
|
|
- void copy_and_scalePID_i_E ## eindex() { copy_and_scalePID_i(eindex); } \
|
2109
|
|
- void copy_and_scalePID_d_E ## eindex() { copy_and_scalePID_d(eindex); }
|
|
2136
|
+ #define _PIDTEMP_BASE_FUNCTIONS(N) \
|
|
2137
|
+ void copy_and_scalePID_i_E ## N() { copy_and_scalePID_i(N); } \
|
|
2138
|
+ void copy_and_scalePID_d_E ## N() { copy_and_scalePID_d(N); }
|
2110
|
2139
|
|
2111
|
2140
|
#if ENABLED(PID_AUTOTUNE_MENU)
|
2112
|
|
- #define _PIDTEMP_FUNCTIONS(eindex) \
|
2113
|
|
- _PIDTEMP_BASE_FUNCTIONS(eindex); \
|
2114
|
|
- void lcd_autotune_callback_E ## eindex() { _lcd_autotune(eindex); }
|
|
2141
|
+ #define _PIDTEMP_FUNCTIONS(N) \
|
|
2142
|
+ _PIDTEMP_BASE_FUNCTIONS(N); \
|
|
2143
|
+ void lcd_autotune_callback_E ## N() { _lcd_autotune(N); }
|
2115
|
2144
|
#else
|
2116
|
|
- #define _PIDTEMP_FUNCTIONS(eindex) _PIDTEMP_BASE_FUNCTIONS(eindex)
|
|
2145
|
+ #define _PIDTEMP_FUNCTIONS(N) _PIDTEMP_BASE_FUNCTIONS(N)
|
2117
|
2146
|
#endif
|
2118
|
2147
|
|
2119
|
2148
|
_PIDTEMP_FUNCTIONS(0)
|
|
@@ -2124,12 +2153,15 @@ void kill_screen(const char* lcd_msg) {
|
2124
|
2153
|
_PIDTEMP_FUNCTIONS(2)
|
2125
|
2154
|
#if HOTENDS > 3
|
2126
|
2155
|
_PIDTEMP_FUNCTIONS(3)
|
2127
|
|
- #endif //HOTENDS > 3
|
2128
|
|
- #endif //HOTENDS > 2
|
2129
|
|
- #endif //HOTENDS > 1
|
2130
|
|
- #endif //PID_PARAMS_PER_HOTEND
|
|
2156
|
+ #if HOTENDS > 4
|
|
2157
|
+ _PIDTEMP_FUNCTIONS(4)
|
|
2158
|
+ #endif // HOTENDS > 4
|
|
2159
|
+ #endif // HOTENDS > 3
|
|
2160
|
+ #endif // HOTENDS > 2
|
|
2161
|
+ #endif // HOTENDS > 1
|
|
2162
|
+ #endif // PID_PARAMS_PER_HOTEND
|
2131
|
2163
|
|
2132
|
|
- #endif //PIDTEMP
|
|
2164
|
+ #endif // PIDTEMP
|
2133
|
2165
|
|
2134
|
2166
|
/**
|
2135
|
2167
|
*
|
|
@@ -2146,27 +2178,20 @@ void kill_screen(const char* lcd_msg) {
|
2146
|
2178
|
|
2147
|
2179
|
//
|
2148
|
2180
|
// Nozzle:
|
2149
|
|
- // Nozzle [1-4]:
|
|
2181
|
+ // Nozzle [1-5]:
|
2150
|
2182
|
//
|
2151
|
2183
|
#if HOTENDS == 1
|
2152
|
|
- #if TEMP_SENSOR_0 != 0
|
2153
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
2154
|
|
- #endif
|
2155
|
|
- #else //HOTENDS > 1
|
2156
|
|
- #if TEMP_SENSOR_0 != 0
|
2157
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N1, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
2158
|
|
- #endif
|
2159
|
|
- #if TEMP_SENSOR_1 != 0
|
2160
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N2, &thermalManager.target_temperature[1], 0, HEATER_1_MAXTEMP - 15, watch_temp_callback_E1);
|
2161
|
|
- #endif
|
|
2184
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
|
2185
|
+ #else // HOTENDS > 1
|
|
2186
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N1, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
|
|
2187
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N2, &thermalManager.target_temperature[1], 0, HEATER_1_MAXTEMP - 15, watch_temp_callback_E1);
|
2162
|
2188
|
#if HOTENDS > 2
|
2163
|
|
- #if TEMP_SENSOR_2 != 0
|
2164
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N3, &thermalManager.target_temperature[2], 0, HEATER_2_MAXTEMP - 15, watch_temp_callback_E2);
|
2165
|
|
- #endif
|
|
2189
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N3, &thermalManager.target_temperature[2], 0, HEATER_2_MAXTEMP - 15, watch_temp_callback_E2);
|
2166
|
2190
|
#if HOTENDS > 3
|
2167
|
|
- #if TEMP_SENSOR_3 != 0
|
2168
|
|
- MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N4, &thermalManager.target_temperature[3], 0, HEATER_3_MAXTEMP - 15, watch_temp_callback_E3);
|
2169
|
|
- #endif
|
|
2191
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N4, &thermalManager.target_temperature[3], 0, HEATER_3_MAXTEMP - 15, watch_temp_callback_E3);
|
|
2192
|
+ #if HOTENDS > 4
|
|
2193
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N5, &thermalManager.target_temperature[4], 0, HEATER_4_MAXTEMP - 15, watch_temp_callback_E4);
|
|
2194
|
+ #endif // HOTENDS > 4
|
2170
|
2195
|
#endif // HOTENDS > 3
|
2171
|
2196
|
#endif // HOTENDS > 2
|
2172
|
2197
|
#endif // HOTENDS > 1
|
|
@@ -2247,11 +2272,14 @@ void kill_screen(const char* lcd_msg) {
|
2247
|
2272
|
PID_MENU_ITEMS(" " MSG_E3, 2);
|
2248
|
2273
|
#if HOTENDS > 3
|
2249
|
2274
|
PID_MENU_ITEMS(" " MSG_E4, 3);
|
2250
|
|
- #endif //HOTENDS > 3
|
2251
|
|
- #endif //HOTENDS > 2
|
2252
|
|
- #else //!PID_PARAMS_PER_HOTEND || HOTENDS == 1
|
|
2275
|
+ #if HOTENDS > 4
|
|
2276
|
+ PID_MENU_ITEMS(" " MSG_E5, 4);
|
|
2277
|
+ #endif // HOTENDS > 4
|
|
2278
|
+ #endif // HOTENDS > 3
|
|
2279
|
+ #endif // HOTENDS > 2
|
|
2280
|
+ #else // !PID_PARAMS_PER_HOTEND || HOTENDS == 1
|
2253
|
2281
|
PID_MENU_ITEMS("", 0);
|
2254
|
|
- #endif //!PID_PARAMS_PER_HOTEND || HOTENDS == 1
|
|
2282
|
+ #endif // !PID_PARAMS_PER_HOTEND || HOTENDS == 1
|
2255
|
2283
|
|
2256
|
2284
|
#endif //PIDTEMP
|
2257
|
2285
|
|
|
@@ -2268,7 +2296,10 @@ void kill_screen(const char* lcd_msg) {
|
2268
|
2296
|
}
|
2269
|
2297
|
|
2270
|
2298
|
void _lcd_control_temperature_preheat_settings_menu(uint8_t material) {
|
2271
|
|
- #if HOTENDS > 3
|
|
2299
|
+ #if HOTENDS > 4
|
|
2300
|
+ #define MINTEMP_ALL MIN5(HEATER_0_MINTEMP, HEATER_1_MINTEMP, HEATER_2_MINTEMP, HEATER_3_MINTEMP, HEATER_4_MINTEMP)
|
|
2301
|
+ #define MAXTEMP_ALL MAX5(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP, HEATER_4_MAXTEMP)
|
|
2302
|
+ #elif HOTENDS > 3
|
2272
|
2303
|
#define MINTEMP_ALL MIN4(HEATER_0_MINTEMP, HEATER_1_MINTEMP, HEATER_2_MINTEMP, HEATER_3_MINTEMP)
|
2273
|
2304
|
#define MAXTEMP_ALL MAX4(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP)
|
2274
|
2305
|
#elif HOTENDS > 2
|
|
@@ -2455,16 +2486,19 @@ void kill_screen(const char* lcd_msg) {
|
2455
|
2486
|
if (volumetric_enabled) {
|
2456
|
2487
|
#if EXTRUDERS == 1
|
2457
|
2488
|
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM, &filament_size[0], 1.5, 3.25, calculate_volumetric_multipliers);
|
2458
|
|
- #else //EXTRUDERS > 1
|
|
2489
|
+ #else // EXTRUDERS > 1
|
2459
|
2490
|
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E1, &filament_size[0], 1.5, 3.25, calculate_volumetric_multipliers);
|
2460
|
2491
|
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E2, &filament_size[1], 1.5, 3.25, calculate_volumetric_multipliers);
|
2461
|
2492
|
#if EXTRUDERS > 2
|
2462
|
2493
|
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E3, &filament_size[2], 1.5, 3.25, calculate_volumetric_multipliers);
|
2463
|
2494
|
#if EXTRUDERS > 3
|
2464
|
2495
|
MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E4, &filament_size[3], 1.5, 3.25, calculate_volumetric_multipliers);
|
2465
|
|
- #endif //EXTRUDERS > 3
|
2466
|
|
- #endif //EXTRUDERS > 2
|
2467
|
|
- #endif //EXTRUDERS > 1
|
|
2496
|
+ #if EXTRUDERS > 4
|
|
2497
|
+ MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float43, MSG_FILAMENT_DIAM MSG_DIAM_E5, &filament_size[4], 1.5, 3.25, calculate_volumetric_multipliers);
|
|
2498
|
+ #endif // EXTRUDERS > 4
|
|
2499
|
+ #endif // EXTRUDERS > 3
|
|
2500
|
+ #endif // EXTRUDERS > 2
|
|
2501
|
+ #endif // EXTRUDERS > 1
|
2468
|
2502
|
}
|
2469
|
2503
|
|
2470
|
2504
|
END_MENU();
|